mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +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:
|
inputs:
|
||||||
targetType: inline
|
targetType: inline
|
||||||
script: |
|
script: |
|
||||||
|
$appVersion = $env:DEPLOY_BUILDNUMBER
|
||||||
|
$appVersionShort = $appVersion.Substring(0, $appVersion.LastIndexOf('.'))
|
||||||
|
|
||||||
Write-Host "Setting up the global configuration"
|
Write-Host "Setting up the global configuration"
|
||||||
git config --global user.email "${{parameters.GitEmail}}"
|
git config --global user.email "${{parameters.GitEmail}}"
|
||||||
git config --global user.name "${{parameters.GitUsername}}"
|
git config --global user.name "${{parameters.GitUsername}}"
|
||||||
|
|
@ -119,11 +122,11 @@ stages:
|
||||||
|
|
||||||
Write-Host "Performing Git Commit"
|
Write-Host "Performing Git Commit"
|
||||||
if ('${{parameters.DeploymentType}}' -eq 'Beta') {
|
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') {
|
if ('${{parameters.DeploymentType}}' -eq 'Production') {
|
||||||
git commit -m "${{parameters.ApplicationName}} $env:DEPLOY_BUILDNUMBER"
|
git commit -m "${{parameters.ApplicationName}} $appVersionShort"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Performing Git Push"
|
Write-Host "Performing Git Push"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue