Reputation: 36573
My pipeline name is set as
name: $(Date:yyyyMMdd)$(Rev:.r)
this works but Azure Pipelines still includes the commit message in my pipeline name. For example, the pipelines UI shows:
#20200422.2 The commit message
is there a way to get Azure Pipelines to just use the name I specified?
Thanks.
Upvotes: 2
Views: 1883
Reputation: 55
As of late 2022, you can now use appendCommitMessageToRunName
to control commit messages being added to your pipeline title.
To disable them, add appendCommitMessageToRunName: false
to the root of your YAML pipeline.
Upvotes: 3
Reputation: 76890
is there a way to get Azure Pipelines to just use the name I specified?
Sorry for any inconvenience.
This behavior is by designed and is not a bug. I do not believe there is a way to set Azure Pipelines name without submit message.
Including the submit message in the name of the pipeline helps us find the cause of the pipeline failure faster.
For example:
Just like above build history, We could directly judge the cause of the failed pipeline by the same submit information, not from the code update, more from the task settings and pipeline settings.
On the other hand, We could judge that the pipeline failure may be due to the update of the code according to the different submit information. Then we check the submit record through the submitted history, and we will quickly know which code we have modified to cause the build to fail, which provides great convenience.
This is especially important for those pipelines that enable CI.( Enable continuous integration).
Hope this helps.
Upvotes: 1