Skip to content

Commit

Permalink
[DownloadBuildArtifactsV0] Normalize download path (#14849)
Browse files Browse the repository at this point in the history
* Added path.normalize for normalizing slashes in path

* Updated task.loc.json

* Added another variable for normalized path

* Normalize the download path as soon as it is received from the input

Co-authored-by: Vladislav Ryzhov <[email protected]>
Co-authored-by: DaniilShmelev <[email protected]>
  • Loading branch information
3 people authored May 20, 2021
1 parent 1bf2e69 commit 89dc1ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Tasks/DownloadBuildArtifactsV0/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function main(): Promise<void> {
var buildVersionToDownload: string = tl.getInput("buildVersionToDownload", false);
var allowPartiallySucceededBuilds: boolean = tl.getBoolInput("allowPartiallySucceededBuilds", false);
var branchName: string = tl.getInput("branchName", false);
var downloadPath: string = tl.getInput("downloadPath", true);
var downloadPath: string = path.normalize(tl.getInput("downloadPath", true));
var downloadType: string = tl.getInput("downloadType", true);
var tagFiltersInput: string = tl.getInput("tags", false);
var tagFilters = [];
Expand Down
4 changes: 2 additions & 2 deletions Tasks/DownloadBuildArtifactsV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 186,
"Patch": 3
"Minor": 188,
"Patch": 0
},
"groups": [
{
Expand Down
4 changes: 2 additions & 2 deletions Tasks/DownloadBuildArtifactsV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 186,
"Patch": 3
"Minor": 188,
"Patch": 0
},
"groups": [
{
Expand Down

0 comments on commit 89dc1ce

Please sign in to comment.