Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Error accessing files to attach: Expecting Ant GLOB pattern

I'm getting an error while attaching a file to the mail post Jenkins job.

ERROR: Error accessing files to attach: Expecting Ant GLOB pattern, but saw '/Test/reports/test_report.html' See http://ant.apache.org/manual/Types/fileset.html for syntax
like image 941
Panda Avatar asked Jun 06 '26 15:06

Panda


1 Answers

Just a workaround, copy the file from its location to $WORKSPACE

cp $WORKSPACE/Test/reports/test_report.html $WORKSPACE/test_report.html

and just specify "test_report.html" in attachment field of your jenkins.

like image 183
Sameer Kulkarni Avatar answered Jun 09 '26 08:06

Sameer Kulkarni



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!