How to specify Artifact version name in Azure DevOps?

烈酒焚心 提交于 2021-01-28 20:16:32

问题


I have a build and release pipeline in Azure DevOps. The build has archive and publish steps.

And then the release picks up the archives to deploy them.

The build has a parameter where I specify the environment, changing some of the build command arguments. So the build can easily create archives for different environments.

I then have a release for each environment, but I cannot tell which archive belongs to which environment because the version is determined by today's date plus a number.

Is there a way to specify the version number for an archive or see the archive names in the selection so I can determine which artifacts came from certain build environments?


回答1:


The Version pick list format (the date & number) is taken from the Build Number format, so just add your variable to there:



来源:https://stackoverflow.com/questions/57417485/how-to-specify-artifact-version-name-in-azure-devops

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