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
6
6
Write-Host " Requested URL: $buildsUrl "
7
7
Write-Host " Got response:`n $ ( ConvertTo-Json $succeededBuilds ) "
8
8
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
+
9
14
$buildsUrl = $env: VSTS_PSES_URL_TEMPLATE -f $branch , " partiallySucceeded"
10
15
$partiallySucceededBuilds = Invoke-RestMethod - ContentType application/ json - Uri $buildsUrl - Headers $headers
11
16
Write-Host " Requested URL: $buildsUrl "
12
17
Write-Host " Got response:`n $ ( ConvertTo-Json $partiallySucceededBuilds ) "
13
18
14
19
$builds = @ (
15
20
$succeededBuilds.value
21
+ $taggedBuilds.value
16
22
$partiallySucceededBuilds.value
17
23
) | Sort-Object finishTime - Descending
18
24
You can’t perform that action at this time.
0 commit comments