Fortunately or not, this is as-designed behavior. try/catch is a part of generic Groovy DSL. If you do not expecify explicit type of exception to be caught, it will catch everything including Jenkins Pipeline exceptions (e.g. blacklisted methods from script security). Once you start doing try/catch in Pipeline, you take full responsibility for exception handling.
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.