SJN
SJN

Reputation: 33

Azure DevOps pipline run descriptions

We have an ADO YAML pipeline which runs based on variables and parameters selected at the time of the run.

Is there a way to put a parameter selected into the desription / name of the run to make it obvious which selection was chosen at the time of the run?

Upvotes: 3

Views: 2271

Answers (2)

Krzysztof Madej
Krzysztof Madej

Reputation: 40613

Yes you can set build number using this command

steps:
  - script: echo "##vso[build.updatebuildnumber]$(CustomValue)"

Here is documentation for this.

Upvotes: 1

WaitingForGuacamole
WaitingForGuacamole

Reputation: 4301

You can also use the name element in your YAML:

parameters: 
- name: ProjectName
  type: string
    default: Default

name: "${{ parameters.ProjectName }}-Build-$(CustomValue)"

steps:
  - # build your project here
  ...

More details on this are at learn.microsoft.com - Azure DevOps

Upvotes: 3

Related Questions