Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins attachments - what is the syntax?

I'm trying to have Jenkins attach a file or set of files to the email notification that the job has completed. I keep getting an error along the lines of:

Sending email for trigger: Success ERROR: Error accessing files to attach: Expecting Ant GLOB pattern, but saw C:\p\p\etc\\\*\*\\\*.html.

See Fileset syntax

And yes I've looked at that site and tried every variation I could think of:

/ instead of \
../\*\*
../\*\*/\*.html
removing C:

What is the Ant GLOB pattern I'm missing here?

thanks, Scott

like image 899
Scott Stark Avatar asked Jul 30 '12 23:07

Scott Stark


1 Answers

The base directory for attachments is the workspace directory. Generally it means that you can't attach files that are higher in the directory hierarchy than the workspace (well, you can use ../, but you have to be very sure about your workspace location). A workaround to this kind of problems is to copy your files into the workspace first in a build step.

like image 63
malenkiy_scot Avatar answered Sep 30 '22 05:09

malenkiy_scot