在 jenkins postbuild 操作中访问文件时出错

问题描述

总结 报告位于:\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

但没有收到来自可编辑电子邮件通知的电子邮件,但是电子邮件可以与构建后电子邮件通知一起使用

解决方法

通过更新正确的目录路径可以正常工作

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...