Skip to content

Commit 9d9f03f

Browse files
authored
Update artifact engine. (#7323)
1 parent 5fd36a6 commit 9d9f03f

File tree

8 files changed

+23
-17
lines changed

8 files changed

+23
-17
lines changed

Tasks/DownloadBuildArtifacts/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/DownloadBuildArtifacts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"dependencies": {
2020
"vsts-task-lib": "2.1.0",
2121
"vso-node-api": "^6.2.8-preview",
22-
"artifact-engine": "0.1.22"
22+
"artifact-engine": "0.1.23"
2323
}
2424
}

Tasks/DownloadBuildArtifacts/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 0,
1111
"Minor": 136,
12-
"Patch": 0
12+
"Patch": 1
1313
},
1414
"groups": [
1515
{

Tasks/DownloadBuildArtifacts/task.loc.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 0,
1111
"Minor": 136,
12-
"Patch": 0
12+
"Patch": 1
1313
},
1414
"groups": [
1515
{
@@ -162,19 +162,25 @@
162162
{
163163
"endpointId": "tfs:teamfoundation",
164164
"target": "project",
165-
"endpointUrl": "{{endpoint.url}}/_apis/projects",
165+
"endpointUrl": "{{endpoint.url}}/_apis/projects?$skip={{skip}}&$top=1000",
166166
"resultSelector": "jsonpath:$.value[?(@.state=='wellFormed')]",
167-
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{name}}}\" }"
167+
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{name}}}\" }",
168+
"callbackContextTemplate": "{\"skip\": \"{{add skip 1000}}\"}",
169+
"callbackRequiredTemplate": "{{isEqualNumber result.count 1000}}",
170+
"initialContextTemplate": "{\"skip\": \"0\"}"
168171
},
169172
{
170173
"endpointId": "tfs:teamfoundation",
171174
"target": "definition",
172-
"endpointUrl": "{{endpoint.url}}/{{project}}/_apis/build/definitions?$top=1000",
175+
"endpointUrl": "{{endpoint.url}}/{{project}}/_apis/build/definitions?api-version=3.0-preview&$top=1000&continuationToken={{{continuationToken}}}&queryOrder=2",
173176
"resultSelector": "jsonpath:$.value[?(@.quality=='definition')]",
174177
"parameters": {
175178
"project": "$(project)"
176179
},
177-
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{name}}}\" }"
180+
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{name}}}\" }",
181+
"callbackContextTemplate": "{\"continuationToken\" : \"{{{headers.x-ms-continuationtoken}}}\"}",
182+
"callbackRequiredTemplate": "{{{#headers.x-ms-continuationtoken}}}true{{{/headers.x-ms-continuationtoken}}}",
183+
"initialContextTemplate": "{\"continuationToken\" : \"{{{system.utcNow}}}\"}"
178184
},
179185
{
180186
"endpointId": "tfs:teamfoundation",
@@ -224,4 +230,4 @@
224230
"LatestBuildNotFound": "ms-resource:loc.messages.LatestBuildNotFound",
225231
"LatestBuildFromBranchNotFound": "ms-resource:loc.messages.LatestBuildFromBranchNotFound"
226232
}
227-
}
233+
}

Tasks/JenkinsDownloadArtifacts/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/JenkinsDownloadArtifacts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"author": "Microsoft Corporation",
99
"license": "MIT",
1010
"dependencies": {
11-
"artifact-engine": "0.1.22",
11+
"artifact-engine": "0.1.23",
1212
"azure-arm-rest": "file:../../_build/Tasks/Common/azure-arm-rest-1.0.2.tgz",
1313
"azure-blobstorage-artifactProvider": "file:../../_build/Tasks/Common/azure-blobstorage-artifactProvider-1.0.0.tgz",
1414
"decompress-zip": "0.3.0",

Tasks/JenkinsDownloadArtifacts/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"demands": [],
1818
"version": {
1919
"Major": 1,
20-
"Minor": 135,
20+
"Minor": 136,
2121
"Patch": 0
2222
},
2323
"groups": [

Tasks/JenkinsDownloadArtifacts/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"demands": [],
1818
"version": {
1919
"Major": 1,
20-
"Minor": 135,
20+
"Minor": 136,
2121
"Patch": 0
2222
},
2323
"groups": [

0 commit comments

Comments
 (0)