Re: Unexpected behavior instantiating a class from dynamically loaded library

2018-08-28 Thread Hari Krishna Dara
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

Unexpected behavior instantiating a class from dynamically loaded library

2018-08-28 Thread Hari Krishna Dara
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