mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-18 09:35:48 +00:00
pipeline file changes
This commit is contained in:
parent
b9aedd96f6
commit
54fe2ef54b
2 changed files with 1 additions and 15 deletions
|
|
@ -6,5 +6,5 @@ steps:
|
||||||
inputs:
|
inputs:
|
||||||
targetType: filePath
|
targetType: filePath
|
||||||
filePath: './.azure/scripts/CreateAgentCapabilitiesEnvironmentVariables.ps1'
|
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
|
pwsh: true
|
||||||
|
|
|
||||||
|
|
@ -18,20 +18,6 @@ steps:
|
||||||
[string]$variableName = '${{parameters.VariableName}}'
|
[string]$variableName = '${{parameters.VariableName}}'
|
||||||
[string]$variableValue = '${{parameters.VariableValue}}'
|
[string]$variableValue = '${{parameters.VariableValue}}'
|
||||||
[string]$accessToken = $env:SYSTEM_ACCESSTOKEN
|
[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('/')) {
|
if($repositoryUrl.EndsWith('/')) {
|
||||||
$repositoryUrl = $repositoryUrl.TrimEnd('/')
|
$repositoryUrl = $repositoryUrl.TrimEnd('/')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue