pipeline file changes

This commit is contained in:
Brett Hewitson 2022-12-23 14:12:09 +10:00
parent 9fe98a6ee6
commit 50bbebe9ec
4 changed files with 22 additions and 30 deletions

View file

@ -31,23 +31,9 @@ stages:
CleanPublishFolder: true
PublishFolder: ${{parameters.PublishFolder}}
- task: PowerShell@2
displayName: Create AgentCapabilities Environment Variables
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
targetType: filePath
filePath: './.azure/scripts/CreateAgentCapabilitiesEnvironmentVariables.ps1'
arguments: "-CollectionUri '$(System.CollectionUri)' -AgentId '$(Agent.Id)' -AgentName '$(Agent.Name)' -AccessToken '$(System.AccessToken)' -DebugMode $(System.Debug)"
pwsh: true
- template: create-agent-capabilities-environment-variables.yml@self
- task: PowerShell@2
displayName: Output Environment Variables
condition: contains(variables['system.debug'], 'true')
inputs:
targetType: inline
script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String'
pwsh: true
- template: output-environment-variables.yml@self
- task: NuGetToolInstaller@1
displayName: Install NuGet 4.4.1

View file

@ -62,13 +62,7 @@ stages:
CleanPublishFolder: false
PublishFolder: $(PublishFolder)
- task: PowerShell@2
displayName: Output Environment Variables
condition: contains(variables['system.debug'], 'true')
inputs:
targetType: inline
script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String'
pwsh: true
- template: output-environment-variables.yml@self
- checkout: MasterRepo
@ -104,13 +98,7 @@ stages:
CleanPublishFolder: false
PublishFolder: $(PublishFolder)
- task: PowerShell@2
displayName: Output Environment Variables
condition: contains(variables['system.debug'], 'true')
inputs:
targetType: inline
script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String'
pwsh: true
- template: output-environment-variables.yml@self
- checkout: MasterRepo

View file

@ -0,0 +1,10 @@
steps:
- task: PowerShell@2
displayName: Create AgentCapabilities Environment Variables
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
targetType: filePath
filePath: './.azure/scripts/CreateAgentCapabilitiesEnvironmentVariables.ps1'
arguments: "-CollectionUri '$(System.CollectionUri)' -AgentId '$(Agent.Id)' -AgentName '$(Agent.Name)' -AccessToken '$(System.AccessToken)' -DebugMode $(System.Debug)"
pwsh: true

View file

@ -0,0 +1,8 @@
steps:
- task: PowerShell@2
displayName: Output Environment Variables
condition: contains(variables['system.debug'], 'true')
inputs:
targetType: inline
script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String'
pwsh: true