Skip to content

Instantly share code, notes, and snippets.

@jayharris
Created November 17, 2018 18:59
Show Gist options
  • Save jayharris/7d528b6679ea139b43e17c9bc300bf6f to your computer and use it in GitHub Desktop.
Save jayharris/7d528b6679ea139b43e17c9bc300bf6f to your computer and use it in GitHub Desktop.
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