I've noticed some "non-deterministic behavior" in my first few pipelines
and I was wondering if there i some sort of try/catch structure I could use
to catch errors. It would sort of look like this:
try {
sh 'some_unix_command'
} catch {
send_mail('Step foo failed on some_unix_command')
}
--
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/CAArvnv0LVdGBP3yfGT2t7tFEMDa8fDykZqjt19xHKnGOXZz3sg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.