我使用Jenkins和Email-Ext插件来自动执行PHP单元测试。如果测试失败,我想发送一封通知邮件给我,包括压缩测试报告。蚂蚁文件集中单个文件的绝对路径
Email-Ext插件需要附件字段中的Ant文件集定义。 压缩的测试报告可以在这里找到:
D:\Test_Reports\test-report-failed.zip
我无法找到使用fileset
绝对路径的单个文件的工作示例。
我尝试以下,但没有奏效:
<fileset file="D:\Test_Reports\test-report-failed.zip" />
能找到只使用绝对路径,但相对路径的任何实例。
这是约的附件栏电子邮件-EXT插件的官方帮助:
This is the set of attachments that will be used for the email. The format is a comma separated list of Ant include file syntax. The base directory is the workspace.
然后引用他们相对于工作区,而不是绝对路径。 – niculare 2013-03-07 10:20:00
工作区可以不同,位于另一个驱动器中。我必须以某种方式使用绝对路径。 – papaiatis 2013-03-07 10:22:14