By enclosing the body of the closure that is being executed in the
constructor in a try/catch I noticed that there is an exception of type
com.cloudbees.groovy.cps.impl.CpsCallableInvocation getting thrown. For
some strange reason, new() wasn't propagating this exception and instead
was return
I have a git project docker-build with the below class:
$ cat src/docker_build/DockerBuild.groovy
package docker_build
class DockerBuild {
def image
def steps
DockerBuild(steps) {
this.steps = steps
steps.docker.withRegistry('...', '...') {
image = st