Skip to content

Commit

Permalink
Working Directory in Linux (#11366)
Browse files Browse the repository at this point in the history
* Working Directory in Linux

* removing preview
  • Loading branch information
20shivangi authored Sep 20, 2019
1 parent af42f2d commit a19e58d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Tasks/AzurePowerShellV4/azurepowershell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async function run() {
let customTargetAzurePs: string = tl.getInput('CustomTargetAzurePs', false);
let serviceName = tl.getInput('ConnectedServiceNameARM',/*required*/true);
let endpointObject= await new AzureRMEndpoint(serviceName).getEndpoint();
let input_workingDirectory = tl.getPathInput('workingDirectory', /*required*/ true, /*check*/ true);

// string constants
let otherVersion = "OtherVersion"
Expand Down Expand Up @@ -102,6 +103,7 @@ async function run() {
.arg(`. '${filePath.replace("'", "''")}'`);

let options = <tr.IExecOptions>{
cwd: input_workingDirectory,
failOnStdErr: false,
errStream: process.stdout, // Direct all output to STDOUT, otherwise the output may appear out
outStream: process.stdout, // of order since Node buffers it's own STDOUT but not STDERR.
Expand Down
3 changes: 1 addition & 2 deletions Tasks/AzurePowerShellV4/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"version": {
"Major": 4,
"Minor": 159,
"Patch": 0
"Patch": 1
},
"preview": true,
"releaseNotes": "Added support for Az Module and cross platform agents.",
"groups": [
{
Expand Down
3 changes: 1 addition & 2 deletions Tasks/AzurePowerShellV4/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"version": {
"Major": 4,
"Minor": 159,
"Patch": 0
"Patch": 1
},
"preview": true,
"releaseNotes": "ms-resource:loc.releaseNotes",
"groups": [
{
Expand Down

0 comments on commit a19e58d

Please sign in to comment.