问题
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