Is it possible to set the build number of a VSTS build based off of the result of a PowerShell/Shell script?
I am trying to set it like so currently:
Write-Host "##vso[task.setvariable variable=build.buildnumber;]$VersionNumber"
However this does not set the build number unfortunately. Having to do this as VSTS doesn't have a way to natively retrieve the latest (or any) git tags from GH!!!
Using ##vso[build.updatebuildnumber]build number
logging command :
Script:
Write-Host "##vso[build.updatebuildnumber]new build number"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.