了解jenkins中的存档工件

时间:2015-06-10 12:33:34

标签: jenkins

我需要在Jenkins路径作业中提供存档工件字段。 我看到为每个构建创建了每个文件夹,其中包含增加磁盘空间的所有工件。

我需要做些什么?

ERROR: No artifacts found that match the file pattern "ReviewWorkflow". Configuration error?
Build step 'Archive the artifacts' changed build result to FAILURE
An attempt to send an e-mail to empty list of recipients, ignored.
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
Request made to compress build log
Failed to send e-mail to sgg7kor because no e-mail address is known, and no default e-mail domain is configured
Failed to send e-mail to sir7cob because no e-mail address is known, and no default e-mail domain is configured
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE

2 个答案:

答案 0 :(得分:2)

根据上面的错误消息,您的作业工作区中没有名为ReviewWorkFlow的文件。

从归档状态的作业配置中的帮助图标

您可以使用' module / dist / ** / * .zip'等通配符。请参阅Ant文件集的includes属性以获取确切的格式。基目录是工作区。您只能归档工作区中的文件。

确保您归档的文件/目录位于作业工作区内非常重要。要查看作业工作区的内容,您可以

在这种情况下,ReviewWorkFlow是一个目录,您希望归档目录的整个内容,包括子文件夹,然后您可以使用通配符,

  • ReviewWorkFlow\**\*(复制ReviewWorkFlow及其子目录的所有内容)

答案 1 :(得分:0)

如果您构建了一个Maven项目(例如),它在目标文件夹中生成war存档,则必须使用此语法来存档war文件:

your_maven_module/target/my_module-*.war

此post命令在您的工作区根文件夹中运行,无需包含工作区路径。