From acaa78446ab082bb5512a7dd301830c31454220d Mon Sep 17 00:00:00 2001 From: Omesh Pandita Date: Wed, 11 Apr 2018 18:28:40 +0530 Subject: [PATCH] fileshare partial download fix --- Tasks/DownloadBuildArtifacts/main.ts | 1 + Tasks/DownloadBuildArtifacts/package-lock.json | 6 +++--- Tasks/DownloadBuildArtifacts/package.json | 2 +- Tasks/DownloadBuildArtifacts/task.json | 4 ++-- Tasks/DownloadBuildArtifacts/task.loc.json | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Tasks/DownloadBuildArtifacts/main.ts b/Tasks/DownloadBuildArtifacts/main.ts index e9f1291301f5..6f81631fc22f 100644 --- a/Tasks/DownloadBuildArtifacts/main.ts +++ b/Tasks/DownloadBuildArtifacts/main.ts @@ -250,6 +250,7 @@ async function main(): Promise { if (!fs.existsSync(artifactLocation)) { console.log(tl.loc("ArtifactNameDirectoryNotFound", artifactLocation, downloadUrl)); artifactLocation = downloadUrl; + downloaderOptions.itemPattern = itemPattern.replace(artifact.name, path.basename(artifactLocation)); } console.log(tl.loc("DownloadArtifacts", artifactLocation)); diff --git a/Tasks/DownloadBuildArtifacts/package-lock.json b/Tasks/DownloadBuildArtifacts/package-lock.json index 8fcb99239837..68c79b08ec53 100644 --- a/Tasks/DownloadBuildArtifacts/package-lock.json +++ b/Tasks/DownloadBuildArtifacts/package-lock.json @@ -20,9 +20,9 @@ "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=" }, "artifact-engine": { - "version": "0.1.18", - "resolved": "https://registry.npmjs.org/artifact-engine/-/artifact-engine-0.1.18.tgz", - "integrity": "sha512-91KWT9tA5SdVpuCpoJlCMpIVQGVSu8Rc4MI2gXWVQa/pZC67uks9ZnpkXa8ZPYFgRJ0I6tJ2itCFUtoKrqn2gg==", + "version": "0.1.20", + "resolved": "https://registry.npmjs.org/artifact-engine/-/artifact-engine-0.1.20.tgz", + "integrity": "sha512-ygjcnLyjD+OfSUY8fpMNDCMWJINLP3fmBrAizEjfmE17uc7BwyXCc+YzCz+xUio/rWFHZ+DUv12goT9SzDglhA==", "requires": { "handlebars": "4.0.10", "minimatch": "3.0.2", diff --git a/Tasks/DownloadBuildArtifacts/package.json b/Tasks/DownloadBuildArtifacts/package.json index f895a131a980..54840b5fb84f 100644 --- a/Tasks/DownloadBuildArtifacts/package.json +++ b/Tasks/DownloadBuildArtifacts/package.json @@ -19,6 +19,6 @@ "dependencies": { "vsts-task-lib": "2.1.0", "vso-node-api": "^6.2.8-preview", - "artifact-engine": "0.1.19" + "artifact-engine": "0.1.20" } } diff --git a/Tasks/DownloadBuildArtifacts/task.json b/Tasks/DownloadBuildArtifacts/task.json index 88c7ac361eae..7078229bbbc5 100644 --- a/Tasks/DownloadBuildArtifacts/task.json +++ b/Tasks/DownloadBuildArtifacts/task.json @@ -8,8 +8,8 @@ "author": "Microsoft Corporation", "version": { "Major": 0, - "Minor": 133, - "Patch": 1 + "Minor": 134, + "Patch": 0 }, "groups": [ { diff --git a/Tasks/DownloadBuildArtifacts/task.loc.json b/Tasks/DownloadBuildArtifacts/task.loc.json index 7ba1d0ef9853..05df236d2cde 100644 --- a/Tasks/DownloadBuildArtifacts/task.loc.json +++ b/Tasks/DownloadBuildArtifacts/task.loc.json @@ -8,8 +8,8 @@ "author": "Microsoft Corporation", "version": { "Major": 0, - "Minor": 133, - "Patch": 1 + "Minor": 134, + "Patch": 0 }, "groups": [ {