mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +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
|
CleanPublishFolder: true
|
||||||
PublishFolder: ${{parameters.PublishFolder}}
|
PublishFolder: ${{parameters.PublishFolder}}
|
||||||
|
|
||||||
- task: PowerShell@2
|
- template: create-agent-capabilities-environment-variables.yml@self
|
||||||
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
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
- template: output-environment-variables.yml@self
|
||||||
displayName: Output Environment Variables
|
|
||||||
condition: contains(variables['system.debug'], 'true')
|
|
||||||
inputs:
|
|
||||||
targetType: inline
|
|
||||||
script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String'
|
|
||||||
pwsh: true
|
|
||||||
|
|
||||||
- task: NuGetToolInstaller@1
|
- task: NuGetToolInstaller@1
|
||||||
displayName: Install NuGet 4.4.1
|
displayName: Install NuGet 4.4.1
|
||||||
|
|
|
||||||
|
|
@ -62,13 +62,7 @@ stages:
|
||||||
CleanPublishFolder: false
|
CleanPublishFolder: false
|
||||||
PublishFolder: $(PublishFolder)
|
PublishFolder: $(PublishFolder)
|
||||||
|
|
||||||
- task: PowerShell@2
|
- template: output-environment-variables.yml@self
|
||||||
displayName: Output Environment Variables
|
|
||||||
condition: contains(variables['system.debug'], 'true')
|
|
||||||
inputs:
|
|
||||||
targetType: inline
|
|
||||||
script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String'
|
|
||||||
pwsh: true
|
|
||||||
|
|
||||||
- checkout: MasterRepo
|
- checkout: MasterRepo
|
||||||
|
|
||||||
|
|
@ -104,13 +98,7 @@ stages:
|
||||||
CleanPublishFolder: false
|
CleanPublishFolder: false
|
||||||
PublishFolder: $(PublishFolder)
|
PublishFolder: $(PublishFolder)
|
||||||
|
|
||||||
- task: PowerShell@2
|
- template: output-environment-variables.yml@self
|
||||||
displayName: Output Environment Variables
|
|
||||||
condition: contains(variables['system.debug'], 'true')
|
|
||||||
inputs:
|
|
||||||
targetType: inline
|
|
||||||
script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String'
|
|
||||||
pwsh: true
|
|
||||||
|
|
||||||
- checkout: MasterRepo
|
- 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