Question

I am using Jenkins 1.552 configured with email-ext 2.25 plugin. My job should send an email with a file attached after each successful build. For that i am using the email plugin and i add the path of the the file i want to send in the attachment field. The mail is sent successfully but the file is not attached and i have this specific error :

ERROR: Error accessing files to attach: remote file operation failed: /../hudson2/workspace/MY_JOB at hudson.remoting.Channel@host

What should be the cause of this access problem ?

PS : My job is running on a ssh slave.

Était-ce utile?

La solution

you will get the error because email-ext plugin uses ant script for attachment so it will only work with relative address.make sure your files to get attached should be under workspace of your job.

attachment pattern should be :**/foldername/*.txt (sample)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top