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
abc1bf70bf
commit
fce67dfb28
2 changed files with 9 additions and 3 deletions
|
|
@ -168,14 +168,14 @@ stages:
|
|||
|
||||
- ${{ if eq(parameters.DeploymentType, 'Beta') }}:
|
||||
- powershell: |
|
||||
[int]$oldValue = ${{variables.NewVersionRevision}}
|
||||
[int]$oldValue = $(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') }}:
|
||||
- powershell: |
|
||||
[int]$oldValue = ${{variables.NewVersionBuild}}
|
||||
[int]$oldValue = $(NewVersionBuild)
|
||||
[int]$newValue = $oldValue + 1
|
||||
Write-Host "##vso[task.setvariable variable=NewVersionBuild;]$newValue"
|
||||
|
||||
|
|
@ -183,6 +183,12 @@ stages:
|
|||
Write-Host "##vso[task.setvariable variable=NewVersionRevision;]$newValue"
|
||||
displayName: Set New Pipeline Version Variable Values
|
||||
|
||||
- ${{ if eq(parameters.DeploymentType, 'Beta') }}:
|
||||
- powershell: |
|
||||
Write-Host "NewVersionBuild: $(NewVersionBuild)"
|
||||
Write-Host "NewVersionRevision: $(NewVersionRevision)"
|
||||
displayName: Output New Pipeline Version Variable Values
|
||||
|
||||
- template: update-pipeline-variable.yml@self
|
||||
parameters:
|
||||
VariableName: 'VersionBuild'
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ steps:
|
|||
[string]$variableValue = '${{parameters.VariableValue}}'
|
||||
[string]$accessToken = $env:SYSTEM_ACCESSTOKEN
|
||||
|
||||
if($repositoryUrl.EndsWith('/')) {
|
||||
if ($repositoryUrl.EndsWith('/')) {
|
||||
$repositoryUrl = $repositoryUrl.TrimEnd('/')
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue