More of a question than an issue. I am trying to get us up and running using the HMRC jenkins-job-builders project. I thought a good first step would be to clone this project and get it building in a local Jenkins instance. However when I try this I am getting a rather unfathomable exception.
Gradle Step
Use Gradle Wrapper = true
From Root Build Script Dir = true
Tasks = clean build
Process Jobs DSL Step
Look On Filesystem = true
DSL Scripts = jobs/**/*.groovy
Removed Jobs = Delete
Removed Views = Delete
Context To Use For Relative Job Names = Jenkins Root
Additional Classpath = build/libs/*.jar
ERROR: (JobBuilder.groovy, line 124) No signature of method: ci_open_jenkins.build.aoss.job() is applicable for argument types: (uk.gov.hmrc.jenkinsjobbuilders.domain.builder.JobBuilder$_build_closure1) values: [uk.gov.hmrc.jenkinsjobbuilders.domain.builder.JobBuilder$_build_closure1@43dde5e2]
Possible solutions: job(java.lang.String), job(java.lang.String, groovy.lang.Closure), run(), run(), any(), use([Ljava.lang.Object;)
Finished: FAILURE
Looking at line 124 it seems to call the script instance (which is cast in the script as a JobDslFactory). I'm wondering if some clever dynamic magic isn't happening which is resulting in the script instance not being given a job()
method?
V grateful for any insight here.