1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 02:02:41 +01:00
phorge-phorge/src/applications/harbormaster/step
James Rhodes ca8f7cdaa5 Execute commands under Powershell on Windows for Harbormaster
Summary:
Resolves T5831.  This modifies the Drydock SSH interface to execute commands under Powershell when the target host platform is Windows.  Powershell is far more featured than cmd.exe, and more closely resembles a UNIX shell.

Currently Powershell outputs stderr as an XML blob on a line, and while this code currently doesn't use that, it will allow us in the future (planned next week) to redirect that output to the stderr log instead of having it all merged in with stdout under cmd (where there is no way to distinguish it).

Test Plan:
Ran various native commands and PowerShell commands from a Harbormaster build, including things like:

```
Write-Host ("my test" + ${build.id})
```

and saw:

```
my test679
```

in the output.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T5831

Differential Revision: https://secure.phabricator.com/D10248
2014-08-13 12:48:52 +10:00
..
HarbormasterBuildStepImplementation.php Make artifacts imply dependencies on build steps 2014-07-31 12:27:37 +10:00
HarbormasterCommandBuildStepImplementation.php Execute commands under Powershell on Windows for Harbormaster 2014-08-13 12:48:52 +10:00
HarbormasterHTTPRequestBuildStepImplementation.php Allow Harbormaster build targets to wait for messages 2014-04-16 13:01:46 -07:00
HarbormasterLeaseHostBuildStepImplementation.php Make various minor Harbormaster UI improvements 2014-03-25 16:10:50 -07:00
HarbormasterPublishFragmentBuildStepImplementation.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
HarbormasterSleepBuildStepImplementation.php Make various minor Harbormaster UI improvements 2014-03-25 16:10:50 -07:00
HarbormasterThrowExceptionBuildStep.php Make various minor Harbormaster UI improvements 2014-03-25 16:10:50 -07:00
HarbormasterUploadArtifactBuildStepImplementation.php Make various minor Harbormaster UI improvements 2014-03-25 16:10:50 -07:00
HarbormasterWaitForPreviousBuildStepImplementation.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00