简体   繁体   English

在Jenkins中归档工件,然后选择要部署到环境的工件

[英]Archiving artifacts in Jenkins and choosing which artifact to deploy to environment

I have curren Jenkins jobs: 我有肯伦·詹金斯(Curren Jenkins)工作:

1. Poll -- Retrieve Latest Tag from SVN
2. Create release and archive it
3. Manual trigger -- Deploy artifact to test environment

So 1. retrieves regularly the latest SVN tag (if created), 2. builds the release (.ear files and DB scripts) and stores the artifacts with the "Archive the artifacts" post-build job, and 3. is a manual trigger job where you actually would have to press a button to deploy the release to test environment 因此,1.定期检索最新的SVN标记(如果已创建),2.生成发行版(.ear文件和DB脚本),并使用“归档工件”的后期构建作业存储工件,并且3.是手动触发器您实际上必须按下按钮才能将发行版部署到测试环境的工作

My question is, is it possible in build 3. to somehow "select" the desired artifact? 我的问题是,是否可以在构建3中以某种方式“选择”所需的工件? Or is it only possible to deploy the latest workspace? 还是只能部署最新的工作空间? Thanks! 谢谢!

Here is a detailed explanation how to select a specific build for deployment 这是详细的说明,说明如何选择要部署的特定内部版本

How to promote a specific build number from another job in Jenkins? 如何在詹金斯的另一份工作中提升特定的内部编号?

In short, you need to combine Copy Artifacts plugin with Promotions concept 简而言之,您需要将Copy Artifacts插件与Promotions概念结合使用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM