Skip to content

Commit 19bfc37

Browse files
committed
Support building from Git tag
Should really just replace this with an ADO trigger.
1 parent 8aa9435 commit 19bfc37

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/releaseBuild/findPsesBuild.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@ $succeededBuilds = Invoke-RestMethod -ContentType application/json -Uri $buildsU
66
Write-Host "Requested URL: $buildsUrl"
77
Write-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
1116
Write-Host "Requested URL: $buildsUrl"
1217
Write-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

0 commit comments

Comments
 (0)