mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
31ce29fbd7
commit
7245de086e
1 changed files with 2 additions and 0 deletions
|
|
@ -58,11 +58,13 @@ stages:
|
|||
}
|
||||
|
||||
$uri = "$($baseUri)/distributedtask/pools?api-version=6.0"
|
||||
Write-Host $uri
|
||||
$responsePools = Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -UseBasicParsing
|
||||
|
||||
foreach ($pool in $responsePools.Value) {
|
||||
|
||||
$uri = "$($baseUri)/distributedtask/pools/$($pool.Id)/agents?api-version=6.0&includeCapabilities=true"
|
||||
Write-Host $uri
|
||||
$responseAgents = Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -UseBasicParsing
|
||||
|
||||
$agents = $responseAgents.Value.Where({$_.id -eq $agentId -and $_.name -eq $agentName})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue