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
942fdb66d3
commit
7284e7ec55
4 changed files with 27 additions and 210 deletions
|
|
@ -35,6 +35,11 @@ stages:
|
|||
environment: github-servermanager-${{ lower(parameters.DeploymentType) }}
|
||||
workspace:
|
||||
clean: all
|
||||
variables:
|
||||
- name: NewVersionBuild
|
||||
value: $(VersionBuild)
|
||||
- name: NewVersionRevision
|
||||
value: $(VersionRevision)
|
||||
|
||||
strategy:
|
||||
runOnce:
|
||||
|
|
@ -162,22 +167,31 @@ stages:
|
|||
workingDirectory: '$(Build.SourcesDirectory)'
|
||||
|
||||
- ${{ if eq(parameters.DeploymentType, 'Beta') }}:
|
||||
- template: update-pipeline-variable.yml@self
|
||||
parameters:
|
||||
VariableName: 'VersionRevision'
|
||||
VariableValue: $(VersionRevision) + 1
|
||||
- powershell: |
|
||||
[int]$oldValue = ${{variables.NewVersionRevision}}
|
||||
[int]$newValue = $oldValue + 1
|
||||
Write-Host "##vso[task.setvariable variable=NewVersionRevision;]$newValue"
|
||||
displayName: Set New Pipeline Version Variable Values
|
||||
|
||||
- ${{ if eq(parameters.DeploymentType, 'Production') }}:
|
||||
- template: update-pipeline-variable.yml@self
|
||||
parameters:
|
||||
VariableName: 'VersionBuild'
|
||||
VariableValue: $(VersionBuild) + 1
|
||||
- powershell: |
|
||||
[int]$oldValue = ${{variables.NewVersionBuild}}
|
||||
[int]$newValue = $oldValue + 1
|
||||
Write-Host "##vso[task.setvariable variable=NewVersionBuild;]$newValue"
|
||||
|
||||
- ${{ if eq(parameters.DeploymentType, 'Production') }}:
|
||||
- template: update-pipeline-variable.yml@self
|
||||
parameters:
|
||||
VariableName: 'VersionRevision'
|
||||
VariableValue: 1
|
||||
[int]$newValue = 1
|
||||
Write-Host "##vso[task.setvariable variable=NewVersionRevision;]$newValue"
|
||||
displayName: Set New Pipeline Version Variable Values
|
||||
|
||||
- template: update-pipeline-variable.yml@self
|
||||
parameters:
|
||||
VariableName: 'VersionBuild'
|
||||
VariableValue: ${{variables.NewVersionBuild}}
|
||||
|
||||
- template: update-pipeline-variable.yml@self
|
||||
parameters:
|
||||
VariableName: 'VersionRevision'
|
||||
VariableValue: ${{variables.NewVersionRevision}}
|
||||
|
||||
- template: azure-pipelines-clean-agent.yml@self
|
||||
parameters:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue