Page MenuHomePhorge
Diviner Tech Docs HarbormasterBuildEngine

final class HarbormasterBuildEngine
Phorge Technical Documentation (Harbormaster)

Moves a build forward by queuing build tasks, canceling or restarting the build, or failing it in response to task failures.

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

public function setForceBuildableUpdate($force_buildable_update)

This method is not documented.
Parameters
$force_buildable_update
Return
wild

public function shouldForceBuildableUpdate()

This method is not documented.
Return
wild

public function queueNewBuildTarget($target)

This method is not documented.
Parameters
HarbormasterBuildTarget$target
Return
wild

public function getNewBuildTargets()

This method is not documented.
Return
wild

public function setViewer($viewer)

This method is not documented.
Parameters
PhabricatorUser$viewer
Return
wild

public function getViewer()

This method is not documented.
Return
wild

public function setBuild($build)

This method is not documented.
Parameters
HarbormasterBuild$build
Return
wild

public function getBuild()

This method is not documented.
Return
wild

public function continueBuild()

This method is not documented.
Return
wild

private function updateBuild($build)

This method is not documented.
Parameters
HarbormasterBuild$build
Return
wild

private function updateBuildSteps($build)

This method is not documented.
Parameters
HarbormasterBuild$build
Return
wild

private function releaseUnusedArtifacts($targets, $steps)

Release any artifacts which aren't used by any running or waiting steps.

This releases artifacts as soon as they're no longer used. This can be particularly relevant when a build uses multiple hosts since it returns hosts to the pool more quickly.

Parameters
list<HarbormasterBuildTarget>$targetsTargets in the build.
list<HarbormasterBuildStep>$stepsList of running and waiting steps.
Return
void

private function updateWaitingTargets($targets)

Process messages which were sent to these targets, kicking applicable targets out of "Waiting" and into either "Passed" or "Failed".

Parameters
list<HarbormasterBuildTarget>$targetsList of targets to process.
Return
void

public function updateBuildable($buildable)

Update the overall status of the buildable this build is attached to.

After a build changes state (for example, passes or fails) it may affect the overall state of the associated buildable. Compute the new aggregate state and save it on the buildable.

Parameters
HarbormasterBuild$buildableThe buildable to update.
Return
void

public function publishBuildable($old, $new)

This method is not documented.
Parameters
HarbormasterBuildable$old
HarbormasterBuildable$new
Return
wild

private function releaseQueuedArtifacts()

This method is not documented.
Return
wild