Reputation: 33
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
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
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