retCode = sh script: filename, returnStatus: trueif (retCode != 0) { error "Errrrooooorrrrrrrrrrr!"}
--
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/cf58c5c7-a5dd-45d1-b493-8b3e693abbdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Victor,
In case you don’t have to do any special/custom/proprietary additional action/handling, then just
sh script: filename
… should do the trick as well: because by default a non-0 exit code of sh step will exit the pipeline with an error/failure IIRC.
HTH Reinhold
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/05927977-4852-4FA1-BDCA-6127C8A5D72D%40gmail.com.