mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 21:32:43 +01:00
Remove call to loadDrydockLease
Summary: Fixes T9219... I think. Test Plan: swagging a guess for epriestley Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T9219 Differential Revision: https://secure.phabricator.com/D13932
This commit is contained in:
parent
e0faa66772
commit
a1d1cf77a7
1 changed files with 4 additions and 2 deletions
|
@ -25,6 +25,7 @@ final class HarbormasterUploadArtifactBuildStepImplementation
|
|||
public function execute(
|
||||
HarbormasterBuild $build,
|
||||
HarbormasterBuildTarget $build_target) {
|
||||
$viewer = PhabricatorUser::getOmnipotentUser();
|
||||
|
||||
$settings = $this->getSettings();
|
||||
$variables = $build_target->getVariables();
|
||||
|
@ -35,7 +36,8 @@ final class HarbormasterUploadArtifactBuildStepImplementation
|
|||
$variables);
|
||||
|
||||
$artifact = $build_target->loadArtifact($settings['hostartifact']);
|
||||
$lease = $artifact->loadDrydockLease();
|
||||
$impl = $artifact->getArtifactImplementation();
|
||||
$lease = $impl->loadArtifactLease($viewer);
|
||||
|
||||
$interface = $lease->getInterface('filesystem');
|
||||
|
||||
|
@ -44,7 +46,7 @@ final class HarbormasterUploadArtifactBuildStepImplementation
|
|||
|
||||
// Insert the artifact record.
|
||||
$artifact = $build_target->createArtifact(
|
||||
PhabricatorUser::getOmnipotentUser(),
|
||||
$viewer,
|
||||
$settings['name'],
|
||||
HarbormasterFileArtifact::ARTIFACTCONST,
|
||||
array(
|
||||
|
|
Loading…
Reference in a new issue