Re: Extracting methods from my jobDSL

2017-01-20 Thread Victor Martinez
Hi Nick, there is also another mailing list about JobDSL: - https://groups.google.com/forum/#!forum/job-dsl-plugin Besides of that, you can also use a similar approach as coded in the below git repo: - https://github.com/sheehan/job-dsl-gradle-example It's object oriented based with some spock te

Extracting methods from my jobDSL

2017-01-20 Thread Nick Stolwijk
Hi all, I'm trying to avoid duplication in my jobDSL configuration by extracting base functionality. It seems I'm failing. ;-) static void basicJob(def jobName, def buildName, def jdk, @DslContext(FreeStyleJob) Closure closure) FreeStyleJob job = freeStyleJob(jobName) { description("Generated by