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;
Else 
    Cancel = true;
}

Else 

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 
https://groups.google.com/d/msgid/jenkinsci-users/4909f619-ac12-46b6-a8eb-56791232ad19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to