mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
pipeline file changes
This commit is contained in:
parent
bacfe49176
commit
7e7211dd65
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ steps:
|
|||
[string]$CollectionUri = $env:SYSTEM_COLLECTIONURI
|
||||
[string]$AgentId = $env:AGENT_ID
|
||||
[string]$AgentName = $env:AGENT_NAME
|
||||
[string]$AccessToken = $env:USER_ACCESSTOKEN
|
||||
[string]$AccessToken = $env:SYSTEM_ACCESSTOKEN
|
||||
|
||||
Function Get-AzureDevopsAgent() {
|
||||
param(
|
||||
|
|
@ -24,7 +24,7 @@ steps:
|
|||
[Net.ServicePointManager]::SecurityProtocol = "Tls12, Tls13"
|
||||
|
||||
$headers = @{
|
||||
Authorization = "Basic $accessToken"
|
||||
Authorization = "Bearer $accessToken"
|
||||
}
|
||||
|
||||
$uri = "$($baseUri)/distributedtask/pools?api-version=6.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue