Differential D15958 Diff 38421 src/applications/harbormaster/step/HarbormasterBuildStepImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/step/HarbormasterBuildStepImplementation.php
| Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | abstract class HarbormasterBuildStepImplementation extends Phobject { | ||||
| public function shouldWaitForMessage(HarbormasterBuildTarget $target) { | public function shouldWaitForMessage(HarbormasterBuildTarget $target) { | ||||
| if (!$this->supportsWaitForMessage()) { | if (!$this->supportsWaitForMessage()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return (bool)$target->getDetail('builtin.wait-for-message'); | return (bool)$target->getDetail('builtin.wait-for-message'); | ||||
| } | } | ||||
| public function abortWaitingForMessage() { | |||||
| // Normally do nothing. Steps that are run remotely might want to instruct | |||||
| // the remote service to abort. | |||||
| } | |||||
| protected function shouldAbort( | protected function shouldAbort( | ||||
| HarbormasterBuild $build, | HarbormasterBuild $build, | ||||
| HarbormasterBuildTarget $target) { | HarbormasterBuildTarget $target) { | ||||
| return $build->getBuildGeneration() !== $target->getBuildGeneration(); | return $build->getBuildGeneration() !== $target->getBuildGeneration(); | ||||
| } | } | ||||
| protected function resolveFutures( | protected function resolveFutures( | ||||
| ▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines | |||||