diff --git a/.azure/pipelines/azure-pipelines.yml b/.azure/pipelines/azure-pipelines.yml index 173aae8d..4a085f0f 100644 --- a/.azure/pipelines/azure-pipelines.yml +++ b/.azure/pipelines/azure-pipelines.yml @@ -60,12 +60,14 @@ stages: $uri = "$($baseUri)/distributedtask/pools?api-version=6.0" Write-Host $uri $responsePools = Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -UseBasicParsing + Write-Host $responsePools 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 + Write-Host $responseAgents $agents = $responseAgents.Value.Where({$_.id -eq $agentId -and $_.name -eq $agentName}) if (!($agents) -or $agents.Count -eq 0) {