Update Build Number in Azure Devops | Build Number Configuration

Описание к видео Update Build Number in Azure Devops | Build Number Configuration

How to Update Build Number in Azure Devops ?
We can update Build Number in Azure Devops via two ways .
One from Option Section/Tab and 2nd Via PowerShell Scripts.

To update the build number from Power shell Script.. We need to add following script..

Write-Host "##vso[build.updatebuildnumber]$(VersionNumber).$(VersionRevision)"

Here we have used 2 variables : VersionNumber and VersionRevision.
We need to add 2 variables in PipeLine Configurations..
VersionNumber will be the desired number and VersionRevision is the counter number that will be updated every time, when ever we will create a new build.

Комментарии

Информация по комментариям в разработке