Created
August 4, 2020 01:05
-
-
Save a11smiles/ba9a572f7bee505690f5ca1a8aae1bf4 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
$git = "cmd.exe /C git describe --abbrev=0 --tags"; | |
$tag = (Invoke-Expression -Command:$git).substring(1); | |
$rev = $env:BUILD_BUILDNUMBER; | |
$build = "$tag-$rev"; | |
Write-Host "$("##vso[build.updatebuildnumber]") $($build)"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment