mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-02 15:38:18 +02:00
Fix some logic in WaitForPreviousBuildStep
Summary: Fixes T5062. See inlines. Test Plan: Did not test whatsoever. Reviewers: hach-que Reviewed By: hach-que Subscribers: epriestley Maniphest Tasks: T5062 Differential Revision: https://secure.phabricator.com/D9132
This commit is contained in:
parent
f2c0e94ea8
commit
702f073f0a
1 changed files with 18 additions and 18 deletions
|
@ -73,6 +73,7 @@ final class HarbormasterWaitForPreviousBuildStepImplementation
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($build_objects) {
|
||||||
$buildables = id(new HarbormasterBuildableQuery())
|
$buildables = id(new HarbormasterBuildableQuery())
|
||||||
->setViewer(PhabricatorUser::getOmnipotentUser())
|
->setViewer(PhabricatorUser::getOmnipotentUser())
|
||||||
->withBuildablePHIDs($build_objects)
|
->withBuildablePHIDs($build_objects)
|
||||||
|
@ -80,10 +81,7 @@ final class HarbormasterWaitForPreviousBuildStepImplementation
|
||||||
->execute();
|
->execute();
|
||||||
$buildable_phids = mpull($buildables, 'getPHID');
|
$buildable_phids = mpull($buildables, 'getPHID');
|
||||||
|
|
||||||
if (!$buildable_phids) {
|
if ($buildable_phids) {
|
||||||
return array();
|
|
||||||
}
|
|
||||||
|
|
||||||
$builds = id(new HarbormasterBuildQuery())
|
$builds = id(new HarbormasterBuildQuery())
|
||||||
->setViewer(PhabricatorUser::getOmnipotentUser())
|
->setViewer(PhabricatorUser::getOmnipotentUser())
|
||||||
->withBuildablePHIDs($buildable_phids)
|
->withBuildablePHIDs($buildable_phids)
|
||||||
|
@ -95,6 +93,8 @@ final class HarbormasterWaitForPreviousBuildStepImplementation
|
||||||
$blockers[] = pht('Build %d', $build->getID());
|
$blockers[] = pht('Build %d', $build->getID());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $blockers;
|
return $blockers;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue