mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +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]$CollectionUri = $env:SYSTEM_COLLECTIONURI
|
||||||
[string]$AgentId = $env:AGENT_ID
|
[string]$AgentId = $env:AGENT_ID
|
||||||
[string]$AgentName = $env:AGENT_NAME
|
[string]$AgentName = $env:AGENT_NAME
|
||||||
[string]$AccessToken = $env:USER_ACCESSTOKEN
|
[string]$AccessToken = $env:SYSTEM_ACCESSTOKEN
|
||||||
|
|
||||||
Function Get-AzureDevopsAgent() {
|
Function Get-AzureDevopsAgent() {
|
||||||
param(
|
param(
|
||||||
|
|
@ -24,7 +24,7 @@ steps:
|
||||||
[Net.ServicePointManager]::SecurityProtocol = "Tls12, Tls13"
|
[Net.ServicePointManager]::SecurityProtocol = "Tls12, Tls13"
|
||||||
|
|
||||||
$headers = @{
|
$headers = @{
|
||||||
Authorization = "Basic $accessToken"
|
Authorization = "Bearer $accessToken"
|
||||||
}
|
}
|
||||||
|
|
||||||
$uri = "$($baseUri)/distributedtask/pools?api-version=6.0"
|
$uri = "$($baseUri)/distributedtask/pools?api-version=6.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue