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('/')