问题描述
总结 报告位于:\pc1\tests\Env\Getreport.html \pc1\tests\Env\Getreport.xml file:////Users/jenkins/Documents/Reports
Sending email to: build@mydomain.com
Sending email for trigger: Failure - Any
ERROR: Error accessing files to attach: Expecting Ant GLOB pattern,but saw 'C:/Users/jenkins/Documents/Reports/'. See http://ant.apache.org/manual/Types/fileset.html for Syntax
An attempt to send an e-mail to empty list of recipients,ignored.
Finished: FAILURE
这才明白
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
Sending email to: users@mydomain.com
Finished: FAILURE
但没有收到来自可编辑电子邮件通知的电子邮件,但是电子邮件可以与构建后电子邮件通知一起使用
解决方法
通过更新正确的目录路径可以正常工作