From fce67dfb28f32770c1b01a5a24e36c898b60f525 Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Thu, 29 Dec 2022 13:40:46 +1000 Subject: [PATCH] pipeline file changes --- .azure/pipelines/azure-pipelines-deploy.yml | 10 ++++++++-- .azure/pipelines/update-pipeline-variable.yml | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.azure/pipelines/azure-pipelines-deploy.yml b/.azure/pipelines/azure-pipelines-deploy.yml index 1cd4a038..aa8fef97 100644 --- a/.azure/pipelines/azure-pipelines-deploy.yml +++ b/.azure/pipelines/azure-pipelines-deploy.yml @@ -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' diff --git a/.azure/pipelines/update-pipeline-variable.yml b/.azure/pipelines/update-pipeline-variable.yml index 3bc4ec6a..8d1c39b4 100644 --- a/.azure/pipelines/update-pipeline-variable.yml +++ b/.azure/pipelines/update-pipeline-variable.yml @@ -19,7 +19,7 @@ steps: [string]$variableValue = '${{parameters.VariableValue}}' [string]$accessToken = $env:SYSTEM_ACCESSTOKEN - if($repositoryUrl.EndsWith('/')) { + if ($repositoryUrl.EndsWith('/')) { $repositoryUrl = $repositoryUrl.TrimEnd('/') }