Jenkins同一构建的多个工件 [英] Jenkins multiple artifacts for the same build

查看:156
本文介绍了Jenkins同一构建的多个工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以保存/归档来自同一构建的多个工件?

Is there a way to save/archive multiple artifacts from the same build?

Jenkins仅允许执行一个"Archive the Artifacts"构建后步骤,而灰色在使用一次后便退出该选项.

Jenkins only allows a single 'Archive the Artifacts' post build step, and grey's out the option after it has been used once.

也许ArtifactsArchiver允许多个模式?

推荐答案

您可以使用 Ant样式模式,例如target/*.jar存档多个工件.

You can use Ant-style pattern, e.g. target/*.jar to archive multiple artifacts.

如果文件不能与一种模式匹配,例如可以使用逗号分隔的模式列表. target/*.jar, target/*.war.

And it is possible to use a comma separated list of patterns if your files can't be matched with one pattern, e.g. target/*.jar, target/*.war.

?输入字段旁边的按钮将显示此信息.

The ? button next to the input field reveals this info.

这篇关于Jenkins同一构建的多个工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆