This is needed to get at the actual CpsCallableInvocation wrapped up
inside an InvokerInvocationException. This isn't an issue with
checkedCall because that ends up, via fake CallSite magic, going
through PogoMetaClassSite#call, which catches GroovyRuntimeExceptions
and unwraps them itself.
JENKINS-45982
Upstream of https://github.com/cloudbees/groovy-cps/pull/65
This is needed to get at the actual CpsCallableInvocation wrapped up inside an InvokerInvocationException. This isn't an issue with checkedCall because that ends up, via fake CallSite magic, going through PogoMetaClassSite#call, which catches GroovyRuntimeExceptions and unwraps them itself.
cc @reviewbybees