Page MenuHomePhabricator

D13932.diff
No OneTemporary

D13932.diff

diff --git a/src/applications/harbormaster/step/HarbormasterUploadArtifactBuildStepImplementation.php b/src/applications/harbormaster/step/HarbormasterUploadArtifactBuildStepImplementation.php
--- a/src/applications/harbormaster/step/HarbormasterUploadArtifactBuildStepImplementation.php
+++ b/src/applications/harbormaster/step/HarbormasterUploadArtifactBuildStepImplementation.php
@@ -25,6 +25,7 @@
public function execute(
HarbormasterBuild $build,
HarbormasterBuildTarget $build_target) {
+ $viewer = PhabricatorUser::getOmnipotentUser();
$settings = $this->getSettings();
$variables = $build_target->getVariables();
@@ -35,7 +36,8 @@
$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 @@
// Insert the artifact record.
$artifact = $build_target->createArtifact(
- PhabricatorUser::getOmnipotentUser(),
+ $viewer,
$settings['name'],
HarbormasterFileArtifact::ARTIFACTCONST,
array(

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 8:08 PM (16 h, 21 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6710582
Default Alt Text
D13932.diff (1 KB)

Event Timeline