了解jenkins中的归档工件

了解jenkins中的归档工件,jenkins,Jenkins,我需要在Jenkins path作业中为归档工件字段提供什么。 我看到每个文件夹都是为每个构建创建的,其中包含了所有工件,增加了磁盘空间 我需要为此做些什么 ERROR: No artifacts found that match the file pattern "ReviewWorkflow". Configuration error? Build step 'Archive the artifacts' changed build result to FAILURE An attempt

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

我需要为此做些什么

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

例如,如果您构建的Maven项目在目标文件夹中生成war存档,则必须使用以下语法来存档war文件:

your_maven_module/target/my_module-*.war

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

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

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


您可以使用通配符,如“module/dist/***.zip”。有关确切格式,请参见Ant文件集的includes属性。基本目录是工作区。您只能存档位于工作区中的文件。 确保要存档的文件/目录位于作业的工作区内非常重要。要查看作业工作区的内容,您可以

  • 通过Jenkins UI单击作业,然后选择左侧的工作区
  • /ws/
    附加到您的工作URL(即,`)
在这种情况下,
ReviewWorkFlow
是一个目录,您希望归档该目录的全部内容,包括子文件夹,然后可以使用通配符

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