Skip to content

Commit

Permalink
Fixing jenkins zip download to handle ignoresslerror flag. (#7201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalyan-microsoft authored May 15, 2018
1 parent 7cdf71f commit b5308e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tasks/JenkinsDownloadArtifacts/jenkinsdownloadartifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function getZipFromUrl(artifactArchiveUrl: string, strictSSL: boolean, loc

var downloaderOptions = configureDownloaderOptions();
var downloader = new engine.ArtifactEngine();
var zipProvider = new providers.ZipProvider(artifactArchiveUrl, handler, { ignoreSslError: false });
var zipProvider = new providers.ZipProvider(artifactArchiveUrl, handler, { ignoreSslError: !strictSSL });
var filesystemProvider = new providers.FilesystemProvider(localPathRoot);

await downloader.processItems(zipProvider, filesystemProvider, downloaderOptions)
Expand Down
2 changes: 1 addition & 1 deletion Tasks/JenkinsDownloadArtifacts/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 1,
"Minor": 134,
"Patch": 0
"Patch": 1
},
"groups": [
{
Expand Down
2 changes: 1 addition & 1 deletion Tasks/JenkinsDownloadArtifacts/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 1,
"Minor": 134,
"Patch": 0
"Patch": 1
},
"groups": [
{
Expand Down

0 comments on commit b5308e2

Please sign in to comment.