Differential D7892 Diff 17853 src/applications/harbormaster/step/WaitForPreviousBuildStepImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/step/WaitForPreviousBuildStepImplementation.php
| Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | private function getBlockers( | ||||
| $builds = id(new HarbormasterBuildQuery()) | $builds = id(new HarbormasterBuildQuery()) | ||||
| ->setViewer(PhabricatorUser::getOmnipotentUser()) | ->setViewer(PhabricatorUser::getOmnipotentUser()) | ||||
| ->withBuildablePHIDs($buildable_phids) | ->withBuildablePHIDs($buildable_phids) | ||||
| ->withBuildPlanPHIDs(array($plan->getPHID())) | ->withBuildPlanPHIDs(array($plan->getPHID())) | ||||
| ->execute(); | ->execute(); | ||||
| foreach ($builds as $build) { | foreach ($builds as $build) { | ||||
| if ($build->isBuilding()) { | if (!$build->isComplete()) { | ||||
| $blockers[] = pht('Build %d', $build->getID()); | $blockers[] = pht('Build %d', $build->getID()); | ||||
| } | } | ||||
| } | } | ||||
| return $blockers; | return $blockers; | ||||
| } | } | ||||
| } | } | ||||