How to change custom release names in Azure DevOps?

痴心易碎 提交于 2020-01-05 08:29:18

问题


I want to change release names like V.1.0.00 for manual release in Continuous Delivery of Azure DevOps but i can't able to delete or change the naming without this $(rev:r), how can I use a custom name?

Default Name: Release- $(rev:r)

Required Name: V.1.0.0


回答1:


You can't. release name must be a unique name, therefore Azure DevOps requires you to put $(rev:r) in the name, because it's adding a incremental number for each release.

Another option is to use $(Build.BuildNumber) or $(Release.ReleaseId) that are also unique but is not will solve your issue.




回答2:


You can change the naming scheme by editing the release name format mask.

When specifying the format mask, you can use the pre-defined variables mentioned in this official document or custom variable -- the value of a global configuration property defined in the release pipeline.

But for your issue ,as far as I know, no pre-defined variables can be displayed like V1.0.0 as release name.



来源:https://stackoverflow.com/questions/57927367/how-to-change-custom-release-names-in-azure-devops

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!