Remove commit message from azure devops pipeline run web page?

2.5k views Asked by At

I know how to change the runName (also known as Build.BuildNumber) but as shown here the picture the commit message also shows up (this is the pipeline page in devops) even though it's not part of the name that I set. This behavior is also present when I don't change the name, it just looks like yyyyMMdd.rev <commit message>.

I don't want the message there because the BuildNumber that I set describes the pipeline run better, and the commit message could be confusing. Is it possible to remove the commit message from this list? Note that this is defined by the new yml pipelines.

2

There are 2 answers

1
RichH On BEST ANSWER

As of Sprint 209 / October 2022, you can set a new pipeline property in the yaml

appendCommitMessageToRunName: false

which will remove the latest commit message from the pipeline run.

Announcement: https://learn.microsoft.com/en-us/azure/devops/release-notes/2022/sprint-209-update?tabs=yaml

and the specific documentation: https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/pipeline?view=azure-pipelines#pipeline-stages

0
Levi Lu-MSFT On

I am afraid that now there is not a setting or workaround which can remove the commit message from the build title. As it is the default behavior currently.

The user voice of disabling append commit message after the buildNumber has been submitted to Microsoft development. You can check here to vote it up or submit a new feature request of your own.