I know how to change the runName (also known as Build.BuildNumber) but as shown here 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>
.
我不希望出现该消息,因为我设置的 BuildNumber 更好地描述了管道的运行情况,并且提交消息可能会令人困惑。是否可以从该列表中删除提交消息?请注意,这是由新的 yml 管道定义的。
从 Sprint 209 / 2022 年 10 月开始,您可以在 yaml 中设置新的管道属性
appendCommitMessageToRunName: false
这将从管道运行中删除最新的提交消息。
公告:https://learn.microsoft.com/en-us/azure/devops/release-notes/2022/sprint-209-update?tabs=yaml https://learn.microsoft.com/en-us/azure/devops/release-notes/2022/sprint-209-update?tabs=yaml
以及具体文档:https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/pipeline?view=azure-pipelines#pipeline-stages https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/pipeline?view=azure-pipelines#pipeline-stages
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)