mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 21:32:43 +01:00
Probably fix bad loadArtifactLease() call
Summary: Ref T9205. This is a likely fix. Test Plan: This isn't straightforward to test in the upstream unless you have custom code on top of it. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9205 Differential Revision: https://secure.phabricator.com/D13928
This commit is contained in:
parent
bd0bbc713a
commit
b21270d498
1 changed files with 2 additions and 1 deletions
|
@ -39,13 +39,14 @@ final class HarbormasterCommandBuildStepImplementation
|
||||||
public function execute(
|
public function execute(
|
||||||
HarbormasterBuild $build,
|
HarbormasterBuild $build,
|
||||||
HarbormasterBuildTarget $build_target) {
|
HarbormasterBuildTarget $build_target) {
|
||||||
|
$viewer = PhabricatorUser::getOmnipotentUser();
|
||||||
|
|
||||||
$settings = $this->getSettings();
|
$settings = $this->getSettings();
|
||||||
$variables = $build_target->getVariables();
|
$variables = $build_target->getVariables();
|
||||||
|
|
||||||
$artifact = $build_target->loadArtifact($settings['hostartifact']);
|
$artifact = $build_target->loadArtifact($settings['hostartifact']);
|
||||||
$impl = $artifact->getArtifactImplementation();
|
$impl = $artifact->getArtifactImplementation();
|
||||||
$lease = $impl->loadArtifactLease();
|
$lease = $impl->loadArtifactLease($viewer);
|
||||||
|
|
||||||
$this->platform = $lease->getAttribute('platform');
|
$this->platform = $lease->getAttribute('platform');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue