pipeline file changes

This commit is contained in:
Brett Hewitson 2022-12-29 13:19:49 +10:00
parent b9aedd96f6
commit 54fe2ef54b
2 changed files with 1 additions and 15 deletions

View file

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

View file

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