pipeline file changes

This commit is contained in:
Brett Hewitson 2022-12-30 10:37:54 +10:00
parent 650d5145ae
commit a80ccacd37
2 changed files with 4 additions and 4 deletions

View file

@ -169,14 +169,14 @@ stages:
workingDirectory: '$(Build.SourcesDirectory)' workingDirectory: '$(Build.SourcesDirectory)'
- ${{ if eq(parameters.DeploymentType, 'Beta') }}: - ${{ if eq(parameters.DeploymentType, 'Beta') }}:
- powershell: | - pwsh: |
[int]$oldValue = $(NewVersionRevision) [int]$oldValue = $(NewVersionRevision)
[int]$newValue = $oldValue + 1 [int]$newValue = $oldValue + 1
Write-Host "##vso[task.setvariable variable=NewVersionRevision;]$newValue" Write-Host "##vso[task.setvariable variable=NewVersionRevision;]$newValue"
displayName: Set New Pipeline Version Variable Values displayName: Set New Pipeline Version Variable Values
- ${{ if eq(parameters.DeploymentType, 'Production') }}: - ${{ if eq(parameters.DeploymentType, 'Production') }}:
- powershell: | - pwsh: |
[int]$oldValue = $(NewVersionBuild) [int]$oldValue = $(NewVersionBuild)
[int]$newValue = $oldValue + 1 [int]$newValue = $oldValue + 1
Write-Host "##vso[task.setvariable variable=NewVersionBuild;]$newValue" Write-Host "##vso[task.setvariable variable=NewVersionBuild;]$newValue"

View file

@ -171,14 +171,14 @@ stages:
workingDirectory: '$(Build.SourcesDirectory)' workingDirectory: '$(Build.SourcesDirectory)'
- ${{ if eq(parameters.DeploymentType, 'Beta') }}: - ${{ if eq(parameters.DeploymentType, 'Beta') }}:
- powershell: | - pwsh: |
[int]$oldValue = $(NewVersionRevision) [int]$oldValue = $(NewVersionRevision)
[int]$newValue = $oldValue + 1 [int]$newValue = $oldValue + 1
Write-Host "##vso[task.setvariable variable=NewVersionRevision;]$newValue" Write-Host "##vso[task.setvariable variable=NewVersionRevision;]$newValue"
displayName: Set New Pipeline Version Variable Values displayName: Set New Pipeline Version Variable Values
- ${{ if eq(parameters.DeploymentType, 'Production') }}: - ${{ if eq(parameters.DeploymentType, 'Production') }}:
- powershell: | - pwsh: |
[int]$oldValue = $(NewVersionBuild) [int]$oldValue = $(NewVersionBuild)
[int]$newValue = $oldValue + 1 [int]$newValue = $oldValue + 1
Write-Host "##vso[task.setvariable variable=NewVersionBuild;]$newValue" Write-Host "##vso[task.setvariable variable=NewVersionBuild;]$newValue"