From e559cbb4f16cd680e1618b0021367a4d9367fee2 Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Thu, 22 Dec 2022 00:49:55 +1000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- .azure/pipelines/azure-pipelines.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.azure/pipelines/azure-pipelines.yml b/.azure/pipelines/azure-pipelines.yml index 162a5dd5..507913c6 100644 --- a/.azure/pipelines/azure-pipelines.yml +++ b/.azure/pipelines/azure-pipelines.yml @@ -93,10 +93,15 @@ stages: [Parameter(Mandatory = $true)] [string]$capabilityType ) + [int]$count = 0 foreach ($capability in $capabilities.PSObject.Properties) { $envName = "AgentCapabilities.$($capabilityType).$($capability.Name)".Replace('_', '.') [System.Environment]::SetEnvironmentVariable($envName, $($capability.Value)) + + $count = $count + 1 } + + Write-Host "Created $count AgentCapabilities.$capabilityType environment variables" } $AgentData = Get-AzureDevopsAgent -baseUri "$(System.CollectionUri)_apis" -accessToken $(System.AccessToken) -agentId $(Agent.Id) -agentName $(Agent.Name)