File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,19 @@ $succeededBuilds = Invoke-RestMethod -ContentType application/json -Uri $buildsU
66Write-Host " Requested URL: $buildsUrl "
77Write-Host " Got response:`n $ ( ConvertTo-Json $succeededBuilds ) "
88
9+ $buildsURL = $buildsURL -replace " branchName" , " tagName"
10+ $taggedBuilds = Invoke-RestMethod - ContentType application/ json - Uri $buildsUrl - Headers $headers
11+ Write-Host " Requested URL: $buildsUrl "
12+ Write-Host " Got response:`n $ ( ConvertTo-Json $taggedBuilds ) "
13+
914$buildsUrl = $env: VSTS_PSES_URL_TEMPLATE -f $branch , " partiallySucceeded"
1015$partiallySucceededBuilds = Invoke-RestMethod - ContentType application/ json - Uri $buildsUrl - Headers $headers
1116Write-Host " Requested URL: $buildsUrl "
1217Write-Host " Got response:`n $ ( ConvertTo-Json $partiallySucceededBuilds ) "
1318
1419$builds = @ (
1520 $succeededBuilds.value
21+ $taggedBuilds.value
1622 $partiallySucceededBuilds.value
1723 ) | Sort-Object finishTime - Descending
1824
You can’t perform that action at this time.
0 commit comments