Jenkins attachments - what is the syntax?

I am trying to connect a Jenkins file or set of files to an email notification that the task has completed. I get an error message:

Sending email for the trigger: Success ERROR: Error accessing attachments: Ant expecting GLOB pattern, but saw C:\p\p\etc\\\*\*\\\*.html .

See Fileset Syntax

And yes, I looked at this site and tried all the options that I could think of:

 / instead of \<br/> ../\*\*<br/> ../\*\*/\*.html<br/> removing C:<br/> 

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

thanks Scott

+8
email attachment jenkins syntax-error ant
source share
2 answers

The base directory for attachments is the workspace directory. Typically, this means that you cannot attach files that are higher in the directory hierarchy than the workspace (well, you can use .. /, but you have to be very sure about the location of your workspace). A workaround for such problems is to copy the files to the workspace first in the build phase.

+12
source share

Read the issue was posted at https://issues.jenkins-ci.org/browse/JENKINS-23329 . The Hockeyapp or jenkins plugin may have been updated, so the files should be in the WORKSPACE section; you donโ€™t need $ WORKSPACE in the path and you just need to add the path / to / apk or the path / to / ipa.

Therefore, change:

C:. \ P \ p \ etc. *** HTML

to

** \ *. HTML

0
source share

All Articles