Created
November 17, 2018 18:59
-
-
Save jayharris/7d528b6679ea139b43e17c9bc300bf6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
write-host $env:BUILD_SOURCEBRANCHNAME | |
if ($env:BUILD_SOURCEBRANCHNAME -eq "Develop"){ | |
Write-Output ("##vso[build.updatebuildnumber]" + $env:BUILD_BUILDNUMBER+"-beta") | |
write-host "setting version as -beta" | |
} | |
else | |
{ | |
if ($env:BUILD_SOURCEBRANCHNAME -ne "master"){ | |
Write-Output ("##vso[build.updatebuildnumber]" + $env:BUILD_BUILDNUMBER+"-alpha") | |
write-host "setting version as -alpha" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment