mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
eaaba05469
commit
d347c80f93
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ stages:
|
||||||
|
|
||||||
$uri = "$($baseUri)/build/builds/$($buildId)?api-version=6.0"
|
$uri = "$($baseUri)/build/builds/$($buildId)?api-version=6.0"
|
||||||
$headers = @{
|
$headers = @{
|
||||||
Authorization = "Basic $accessToken"
|
Authorization = "Bearer $accessToken"
|
||||||
}
|
}
|
||||||
|
|
||||||
return Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -UseBasicParsing
|
return Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -UseBasicParsing
|
||||||
|
|
@ -80,7 +80,7 @@ stages:
|
||||||
|
|
||||||
$uri = "$($baseUri)/distributedtask/pools/$($poolId)/agents/$($agentId)?api-version=6.0&includeCapabilities=true"
|
$uri = "$($baseUri)/distributedtask/pools/$($poolId)/agents/$($agentId)?api-version=6.0&includeCapabilities=true"
|
||||||
$headers = @{
|
$headers = @{
|
||||||
Authorization = "Basic $accessToken"
|
Authorization = "Bearer $accessToken"
|
||||||
}
|
}
|
||||||
|
|
||||||
return Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -UseBasicParsing
|
return Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -UseBasicParsing
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue