Skip to content

Commit 8feaa94

Browse files
authored
Fix download of fileshare artifact when publish path is localpath. (#6242)
1 parent 05a5e39 commit 8feaa94

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Tasks/DownloadBuildArtifacts/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ async function main(): Promise<void> {
163163
}
164164
else if (artifact.resource.type.toLowerCase() === "filepath") {
165165
let downloader = new engine.ArtifactEngine();
166-
let downloadUrl = decodeURIComponent(artifact.resource.downloadUrl.replace("file:", ""));
166+
let downloadUrl = artifact.resource.data;
167167
let artifactLocation = downloadUrl + '/' + artifact.name;
168168
if (!fs.existsSync(artifactLocation)) {
169169
console.log(tl.loc("ArtifactNameDirectoryNotFound", artifactLocation, downloadUrl));

Tasks/DownloadBuildArtifacts/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"version": {
1111
"Major": 0,
1212
"Minor": 127,
13-
"Patch": 6
13+
"Patch": 7
1414
},
1515
"groups": [
1616
{

Tasks/DownloadBuildArtifacts/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"version": {
1111
"Major": 0,
1212
"Minor": 127,
13-
"Patch": 6
13+
"Patch": 7
1414
},
1515
"groups": [
1616
{

0 commit comments

Comments
 (0)