From 54fe2ef54b6aa867dc5f8a09620da7536d09c1a7 Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Thu, 29 Dec 2022 13:19:49 +1000 Subject: [PATCH] pipeline file changes --- ...te-agent-capabilities-environment-variables.yml | 2 +- .azure/pipelines/update-pipeline-variable.yml | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/.azure/pipelines/create-agent-capabilities-environment-variables.yml b/.azure/pipelines/create-agent-capabilities-environment-variables.yml index dca14a8b..7f48482e 100644 --- a/.azure/pipelines/create-agent-capabilities-environment-variables.yml +++ b/.azure/pipelines/create-agent-capabilities-environment-variables.yml @@ -6,5 +6,5 @@ steps: inputs: targetType: filePath filePath: './.azure/scripts/CreateAgentCapabilitiesEnvironmentVariables.ps1' - arguments: "-CollectionUri '$(System.CollectionUri)' -AgentId '$(Agent.Id)' -AgentName '$(Agent.Name)' -AccessToken $(System.AccessToken) -DebugMode $(System.Debug)" + arguments: "-CollectionUri '$(System.CollectionUri)' -AgentId '$(Agent.Id)' -AgentName '$(Agent.Name)' -AccessToken $(System.AccessToken) -DebugMode $env:SYSTEM_DEBUG" pwsh: true diff --git a/.azure/pipelines/update-pipeline-variable.yml b/.azure/pipelines/update-pipeline-variable.yml index cd3cff7b..8b4d1266 100644 --- a/.azure/pipelines/update-pipeline-variable.yml +++ b/.azure/pipelines/update-pipeline-variable.yml @@ -18,20 +18,6 @@ steps: [string]$variableName = '${{parameters.VariableName}}' [string]$variableValue = '${{parameters.VariableValue}}' [string]$accessToken = $env:SYSTEM_ACCESSTOKEN - [string]$debugMode = $env.SYSTEM_DEBUG - - if ($debugMode -eq 'true') { - Write-Host '##[section]Starting: DEBUG INFORMATION' - - Write-Host "##[debug]repositoryUrl = $repositoryUrl" - Write-Host "##[debug]repositoryName = $repositoryName" - Write-Host "##[debug]definitionId = $definitionId" - Write-Host "##[debug]variableName = $variableName" - Write-Host "##[debug]variableValue = $variableValue" - - Write-Host '##[section]Finishing: DEBUG INFORMATION' - Write-Host '' - } if($repositoryUrl.EndsWith('/')) { $repositoryUrl = $repositoryUrl.TrimEnd('/')