diff --git a/.azure/pipelines/azure-pipelines-deploy.yml b/.azure/pipelines/azure-pipelines-deploy.yml index 6bba2713..b2690763 100644 --- a/.azure/pipelines/azure-pipelines-deploy.yml +++ b/.azure/pipelines/azure-pipelines-deploy.yml @@ -107,6 +107,9 @@ stages: inputs: targetType: inline script: | + $appVersion = $env:DEPLOY_BUILDNUMBER + $appVersionShort = $appVersion.Substring(0, $appVersion.LastIndexOf('.')) + Write-Host "Setting up the global configuration" git config --global user.email "${{parameters.GitEmail}}" git config --global user.name "${{parameters.GitUsername}}" @@ -119,11 +122,11 @@ stages: Write-Host "Performing Git Commit" if ('${{parameters.DeploymentType}}' -eq 'Beta') { - git commit -m "${{parameters.ApplicationName}} Beta $env:DEPLOY_BUILDNUMBER" + git commit -m "${{parameters.ApplicationName}} Beta $appVersion" } if ('${{parameters.DeploymentType}}' -eq 'Production') { - git commit -m "${{parameters.ApplicationName}} $env:DEPLOY_BUILDNUMBER" + git commit -m "${{parameters.ApplicationName}} $appVersionShort" } Write-Host "Performing Git Push"