问题描述
有没有一种方法可以保存/归档来自同一构建的多个工件?
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同一构建的多个工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!