You might also want to look into the Conditional BuildStep plugin.  It has a 
“File Exists” conditional.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Slide
Sent: Wednesday, August 30, 2017 8:53 AM
To: Jenkins Users
Subject: Re: Send mail from Jenkins with attach conditioned file


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.

On Wed, Aug 30, 2017, 03:48 
<[email protected]<mailto:[email protected]>> wrote:
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f90493ec-a514-491b-bd3b-f86408e1a12d%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/f90493ec-a514-491b-bd3b-f86408e1a12d%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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 
[email protected]<mailto:[email protected]>.
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<https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdfJ_FbpJh8KpxG80R-zxAXv%3DDBj-n33CDr%3DvC67SpCRQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
________________________________
This email is intended solely for the named addressee(s) and may be 
confidential or contain privileged information. Review, disclosure, copying, 
distribution, or use of this email by anyone other than an intended recipient 
is strictly prohibited. If you received this email in error, please delete it 
from your system and notify the sender immediately. While precautions have been 
taken to help ensure no computer viruses are present, there is a risk whenever 
transmitting emails or downloading attachments. The sender will not be liable 
for any loss or damage resulting from any malware in this communication or for 
improper or incomplete transmission of its contents or for any delay in its 
receipt.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3994D3AA09885B4CACC3D00FFD60221F01167C5BA9%40MX-EXMB1-PRD.infarmbureau.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to