This mavenJob DSL syntax
mavenJob('mvn-dummy') {
description 'A dummy Maven Job'
label('maven3')
parameters {
gitParam('SELECTED_TAG') {
description 'The Git tag to checkout'
type 'TAG'
defaultValue '2.3.4-2'
}
}
scm {
git {
remote {
}
branch(${SELECTED_TAG})
}
}
rootPOM 'pom.xml'
goals 'clean install'
}
generates the following error when imported in a FreeStyleJob
Processing DSL script jobs/mavenDummyJob.groovy
ERROR: (mavenDummyJob.groovy, line 19) No signature of method: javaposse.jobdsl.dsl.helpers.scm.GitContext.$() is applicable for argument types: (mavenDummyJob$_run_closure1$_closure3$_closure5$_closure7) values: [mavenDummyJob$_run_closure1$_closure3$_closure5$_closure7@b65b78]
Possible solutions: is(java.lang.Object), any(), use([Ljava.lang.Object;), any(groovy.lang.Closure), wait(), grep()
Finished: FAILURE