3

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
Panda
  • 369
  • 1
  • 6
  • 11

1 Answers1

4

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.

Dharman
  • 30,962
  • 25
  • 85
  • 135