Differential D14336 Diff 34602 src/applications/harbormaster/step/HarbormasterLeaseWorkingCopyBuildStepImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/step/HarbormasterLeaseWorkingCopyBuildStepImplementation.php
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | private function buildRepositoryMap(HarbormasterBuildTarget $build_target) { | ||||
if (!$repository_phid) { | if (!$repository_phid) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Unable to determine how to clone the repository for this '. | 'Unable to determine how to clone the repository for this '. | ||||
'buildable: it is not associated with a tracked repository.')); | 'buildable: it is not associated with a tracked repository.')); | ||||
} | } | ||||
$also_phids = $build_target->getFieldValue('repositoryPHIDs'); | $also_phids = $build_target->getFieldValue('repositoryPHIDs'); | ||||
if (!is_array($also_phids)) { | |||||
$also_phids = array(); | |||||
} | |||||
$all_phids = $also_phids; | $all_phids = $also_phids; | ||||
$all_phids[] = $repository_phid; | $all_phids[] = $repository_phid; | ||||
$repositories = id(new PhabricatorRepositoryQuery()) | $repositories = id(new PhabricatorRepositoryQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withPHIDs($all_phids) | ->withPHIDs($all_phids) | ||||
->execute(); | ->execute(); | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |