Hi all
I want to send a email notification only when the build log contains a 
particular string.
I tried below in pre-send script but it didn't work.
If (build.log.contains("Job is ")) {
    Cancel = false;
    Cancel = true;


Is there a way to mark the job as failure if the build log doesn't contain the 
word I'm looking for I.e "Job is "
So that I use trigger to send mail only when my build is success.

Kindly 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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to