mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
pipeline file changes
This commit is contained in:
parent
85d7e51c13
commit
bd5d29b144
1 changed files with 5 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue