Email-ext will do this. You just supply a pattern for the files you want attached. I think it will work fine if the files are not there.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f90493ec-a514-491b-bd3b-f86408e1a12d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You might also want to look into the Conditional BuildStep plugin. It has a “File Exists” conditional.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdfJ_FbpJh8KpxG80R-zxAXv%3DDBj-n33CDr%3DvC67SpCRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/25c2f45e-801a-4e4f-9c16-dfa193571c60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/25c2f45e-801a-4e4f-9c16-dfa193571c60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
echo "HELLO"
Looking at the bracket positions in your log snippet, it looks like there could be a trailing space or two after the file name in the File text box. Make sure there’s no extra spaces around the file name as that could be messing it up.
Regards,
Daniel.
From: Ana MB
Sent: 04 September 2017 12:37
To: Jenkins Users
Subject: Re: Send mail from Jenkins with attach conditioned file
I don't understand what could be happening... any ideas?
Thanks so much!
El lunes, 4 de septiembre de 2017, 12:13:47 (UTC+2), Ana MB escribió:
I've just noticed that if I put only in Command Shell:
echo "HELLO"
Neither it happens nothing...
why doesn't it run??
Thanks....
El lunes, 4 de septiembre de 2017, 10:36:49 (UTC+2), Ana MB escribió:
Hi guys!
I've tried with the following:
But I get the following Console Output from Jenkins:
[File exists] check if file exists [test_resultados_miniprueba.csv ]
Run condition [File exists] preventing perform for step [BuilderChain]
Finished: SUCCESS
And I don't get any email.
Why?
Thanks so much!
El miércoles, 30 de agosto de 2017, 12:48:27 (UTC+2), Ana MB escribió:Hi guys!
I want to send an email from Jenkins only when a condition happens, I'll tell you: I want to attach a file .csv only when this file has been generated in the test (there will be times that the test doesn't create that file because it will happen when the test finds errors in the information. It the test doesn't fin error in information, it doesn't create the file .csv). I don't know if there is any way to do it?
I've been searching in configuration of Jenkins but I don't find a way to do it...
Thanks so much for your help!!!!
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fbade639-d454-4d0c-b6c4-439f8936cf02%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9310c87e-9ca6-49e2-88c0-e96c569cacad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.