mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
pipeline file changes
This commit is contained in:
parent
9fe98a6ee6
commit
50bbebe9ec
4 changed files with 22 additions and 30 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
8
.azure/pipelines/output-environment-variables.yml
Normal file
8
.azure/pipelines/output-environment-variables.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue