Page MenuHomePhabricator

D13932.id.diff
No OneTemporary

D13932.id.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
Sun, Nov 10, 9:54 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6710582
Default Alt Text
D13932.id.diff (1 KB)

Event Timeline