From b70bb69426bb9d05dd4558840ae6902123723a2a Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Fri, 23 Dec 2022 19:58:58 +1000 Subject: [PATCH] added path to master repo checkout task --- .azure/pipelines/azure-pipelines-deploy.yml | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.azure/pipelines/azure-pipelines-deploy.yml b/.azure/pipelines/azure-pipelines-deploy.yml index 12186f06..f4b3b5fc 100644 --- a/.azure/pipelines/azure-pipelines-deploy.yml +++ b/.azure/pipelines/azure-pipelines-deploy.yml @@ -56,6 +56,7 @@ stages: - template: output-environment-variables.yml@self - checkout: MasterRepo + path: 'repo' persistCredentials: true - task: PowerShell@2 @@ -134,6 +135,42 @@ stages: pwsh: true workingDirectory: '$(Build.SourcesDirectory)' + - task: PowerShell@2 + displayName: 'Update VersionRevision Variable' + condition: eq('${{parameters.DeploymentType}}', 'Beta') + enabled: false + env: + SYSTEM_ACCESSTOKEN: $(System.AccessToken) + inputs: + targetType: filePath + filePath: './.azure/scripts/UpdateVersionVariable.ps1' + pwsh: true + + - task: PowerShell@2 + displayName: 'Update VersionBuild Variable' + condition: eq('${{parameters.DeploymentType}}', 'Production') + enabled: false + env: + SYSTEM_ACCESSTOKEN: $(System.AccessToken) + inputs: + targetType: filePath + filePath: './.azure/scripts/UpdateVersionVariable.ps1' + arguments: "-variableName 'VersionBuild'" + pwsh: true + + - task: PowerShell@2 + displayName: 'Reset VersionRevision Variable' + condition: eq('${{parameters.DeploymentType}}', 'Production') + enabled: false + env: + SYSTEM_ACCESSTOKEN: $(System.AccessToken) + VERSIONREVISION: 0 + inputs: + targetType: filePath + filePath: './.azure/scripts/UpdateVersionVariable.ps1' + arguments: "-variableName 'VersionRevision'" + pwsh: true + - task: PowerShell@2 displayName: Update Pipeline Version Variables (TODO) enabled: false