Skip to content

Commit

Permalink
Fix download of fileshare artifact when publish path is localpath. (#…
Browse files Browse the repository at this point in the history
…6244)

Fix download of fileshare artifact when publish path is localpath.
  • Loading branch information
omeshp authored Jan 17, 2018
1 parent cb24bb3 commit 9577aa0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tasks/DownloadBuildArtifacts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async function main(): Promise<void> {
}
else if (artifact.resource.type.toLowerCase() === "filepath") {
let downloader = new engine.ArtifactEngine();
let downloadUrl = decodeURIComponent(artifact.resource.downloadUrl.replace("file:", ""));
let downloadUrl = artifact.resource.data;
let artifactLocation = downloadUrl + '/' + artifact.name;
if (!fs.existsSync(artifactLocation)) {
console.log(tl.loc("ArtifactNameDirectoryNotFound", artifactLocation, downloadUrl));
Expand Down
2 changes: 1 addition & 1 deletion Tasks/DownloadBuildArtifacts/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": true,
"version": {
"Major": 0,
"Minor": 129,
"Minor": 130,
"Patch": 0
},
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion Tasks/DownloadBuildArtifacts/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": true,
"version": {
"Major": 0,
"Minor": 129,
"Minor": 130,
"Patch": 0
},
"groups": [
Expand Down

0 comments on commit 9577aa0

Please sign in to comment.