mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
2eea4900b3
commit
31ce29fbd7
1 changed files with 3 additions and 3 deletions
|
|
@ -74,11 +74,11 @@ stages:
|
|||
throw "Multiple agents ($($agents.Count)) found with id: $agentId and name: $agentName"
|
||||
}
|
||||
|
||||
Write-Host 'Agent found'
|
||||
Write-Host -ForeGroundColor Green 'Agent found'
|
||||
return $agents.Item(0)
|
||||
}
|
||||
|
||||
Write-Host 'Agent NOT found'
|
||||
Write-Host -ForeGroundColor Yellow 'Agent NOT found'
|
||||
return $null
|
||||
}
|
||||
catch {
|
||||
|
|
@ -103,7 +103,7 @@ stages:
|
|||
$count = $count + 1
|
||||
}
|
||||
|
||||
Write-Host "Created $count AgentCapabilities.$capabilityType environment variables"
|
||||
Write-Host -ForeGroundColor Cyan "Created $count AgentCapabilities.$capabilityType environment variables"
|
||||
}
|
||||
|
||||
$AgentData = Get-AzureDevopsAgent -baseUri "$(System.CollectionUri)_apis" -accessToken $(System.AccessToken) -agentId $(Agent.Id) -agentName $(Agent.Name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue