pipeline file changes

This commit is contained in:
Brett Hewitson 2022-12-23 18:46:51 +10:00
parent 85d7e51c13
commit bd5d29b144

View file

@ -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"