@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Set the working directory when providing SSH / SFTP interfaces

Summary: Ref T1049. Set the working directory when executing commands on Drydock hosts. Without this set, they execute in the user's default home directory.

Test Plan: Ran a build and saw the correct working directory when running `pwd`.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: CanadianBadass, epriestley, Korvin

Maniphest Tasks: T1049

Differential Revision: https://secure.phabricator.com/D10293

+4 -2
+4 -2
src/applications/drydock/blueprint/DrydockPreallocatedHostBlueprintImplementation.php
··· 108 108 'host' => $resource->getAttribute('host'), 109 109 'port' => $resource->getAttribute('port'), 110 110 'credential' => $resource->getAttribute('credential'), 111 - 'platform' => $resource->getAttribute('platform'))); 111 + 'platform' => $resource->getAttribute('platform'))) 112 + ->setWorkingDirectory($lease->getAttribute('path')); 112 113 case 'filesystem': 113 114 return id(new DrydockSFTPFilesystemInterface()) 114 115 ->setConfiguration(array( 115 116 'host' => $resource->getAttribute('host'), 116 117 'port' => $resource->getAttribute('port'), 117 - 'credential' => $resource->getAttribute('credential'))); 118 + 'credential' => $resource->getAttribute('credential'))) 119 + ->setWorkingDirectory($lease->getAttribute('path')); 118 120 } 119 121 120 122 throw new Exception("No interface of type '{$type}'.");