From 40f1a3e2553a0e8ef42057c703b494f913984aa1 Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Thu, 22 Dec 2022 00:54:42 +1000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- .azure/pipelines/azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) 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) {