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