Thanks for pointing it out, in this case the wiki has gone out of date. I'll go update it. The documentation which is consistently updated with each check-in the formal DSL Command page:
https://github.com/jenkinsci/job-dsl-plugin/wiki/Job-DSL-Commands And page's example is correct. Another source to look at for examples is the unit tests: https://github.com/jenkinsci/job-dsl-plugin/blob/master/job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/ScmHelperSpec.groovy#L89 What happened here is that the << syntax was deprecated for strings, we need real nodes for that. We couldn't reliable resolve what you were trying to do and what context. An email went out to the job-dsl-plugin google, but obviously the examples page should have been updated. It'll look like this: job { name 'GitJobXmlConfigured' scm { git('git://github.com/JavaPosseRoundup/job-dsl-plugin') { node -> node / authorOrCommitter('true') node / gitConfigName('Justin Ryan') node / gitConfigEmail('jus...@halfempty.org') } } } On Saturday, January 12, 2013 2:47:21 PM UTC-8, JonathanRRogers wrote: > > Although Job DSL scripts work as long as there are no configure blocks, > I haven't been able to get a single configure block to work, including > verbatim examples from the docs. In particular, I've tried the Git > example from the "Real World Examples" at > <URL:https://github.com/jenkinsci/job-dsl-plugin/wiki/Real-World-Examples> > > > --------------------------------------------------------------------- > job { > name 'GitJobXmlConfigured' > scm { > git('git://github.com/JavaPosseRoundup/job-dsl-plugin') { node -> > // These names come straight from the xml, <scm > class="hudson.plugins.git.GitSCM"> > node / authorOrCommitter << 'true' > node / gitConfigName << 'Justin Ryan' > node / gitConfigEmail << 'jus...@halfempty.org <javascript:>' > } > } > } > --------------------------------------------------------------------- > > When I execute the job with this script, it results in an error like this: > > FATAL: No signature of method: git.git() is applicable for argument > types: (git$_run_closure1_closure2_closure3) values: > [git$_run_closure1_closure2_closure3@a799c1] > Possible solutions: wait(), wait(long), is(java.lang.Object), > with(groovy.lang.Closure), run(), getJm() > -- > Jonathan Rogers >