mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Update azure-pipelines-servermanagers-build.yml
This commit is contained in:
parent
c5b38cb337
commit
8fd57d5fe8
1 changed files with 5 additions and 0 deletions
|
|
@ -53,12 +53,17 @@ stages:
|
||||||
displayName: Tag Files
|
displayName: Tag Files
|
||||||
env:
|
env:
|
||||||
DEPLOY_BUILDNUMBER: $(Build.BuildNumber)
|
DEPLOY_BUILDNUMBER: $(Build.BuildNumber)
|
||||||
|
DEPLOY_REQUESTEDFOREMAIL: $(Build.RequestedForEmail)
|
||||||
|
DEPLOY_REQUESTEDFOR: $(Build.RequestedFor)
|
||||||
inputs:
|
inputs:
|
||||||
targetType: inline
|
targetType: inline
|
||||||
script: |
|
script: |
|
||||||
$appVersion = $env:DEPLOY_BUILDNUMBER
|
$appVersion = $env:DEPLOY_BUILDNUMBER
|
||||||
$tag = $appVersion
|
$tag = $appVersion
|
||||||
|
|
||||||
|
git config user.email "$env:DEPLOY_REQUESTEDFOREMAIL"
|
||||||
|
git config user.name "$env:DEPLOY_REQUESTEDFOR"
|
||||||
|
|
||||||
Write-Host "Performing Git Tag Delete"
|
Write-Host "Performing Git Tag Delete"
|
||||||
git tag -d $tag
|
git tag -d $tag
|
||||||
git push origin :refs/tags/$tag
|
git push origin :refs/tags/$tag
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue