Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Brett Hewitson 2022-12-22 00:52:07 +10:00
parent 2eea4900b3
commit 31ce29fbd7

View file

@ -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)