Hi Michael,
I played with the plugin quite a bit. I am very enthusiastic about this plugin, because it gives me a way to manage the pipeline script development as if it were a regular plugin (code, test, version and release), while being much easier to write than a regular plugin.
I do not plan to use the mini simpleBuild DSL as is, but I plan to use its base class PipelineDSLGlobal and build a different core with it. I do not plan on using the Jenkinsfile aspect yet, because I have multiple CD/CI pipelines per branch in my projects, and only one Jenkinsfile is supported currently.
One thing I was trying to do was to acess the "env" and the build parameters from inside the simpleBuild Closure. I changed "env" to "map" in the source (so "env" would not be hidden), and I attempted the following:
I tried various ways of setting the closure delegate (see it on
my github fork) but the alternative I tried results in not being able to resolve the "scm" in "checkout scm". If I use ${this.env.BUILD_NUMBER}, then it works, but I would feel more comfortable using your code if I understood why ${env.BUILD_NUMBER} cannot be resolved. The Closure owner is a WorkflowScript after all, and it should have "env".
Thanks,
Martin