如何在Azure DevOps中指定工件版本名称? [英] How to specify Artifact version name in Azure DevOps?
问题描述
我在Azure DevOps中有一个构建和发布管道.该构建具有存档和发布步骤.
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.
是否可以指定档案的版本号或在选择中查看档案名称,以便我可以确定哪些工件来自某些构建环境?
推荐答案
版本选择列表格式(日期和编号)来自内部版本号格式,因此只需在此处添加变量即可.
The Version pick list format (the date & number) is taken from the Build Number format, so just add your variable to there:
这篇关于如何在Azure DevOps中指定工件版本名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!