title: jenkins job dsl - No signature of method: java.lang.String.call()
body: <p>I am unable to run this piece of code:</p>
  
  <pre><code>buildPath = 'applications'
  buildJob(['java', 'nodejs'])
  
  
  def buildJob(def jobList){
    for(job in jobList){
      def jobName = "${job}_seed"
      def jobDescription = "Jenkins DSL seed for ${job}"
      def jobScriptPath = "resources/dsl/${jobName}.groovy"
      job("${buildPath}/${jobName}")
    }
  }
  </code></pre>
  
  <p>So, I am getting this error:</p>
  
  <pre class="lang-sh prettyprint-override"><code>Processing provided DSL script
  ERROR: (script, line 12) No signature of method: java.lang.String.call() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [applications/java_seed]
  Possible solutions: wait(), any(), wait(long), take(int), each(groovy.lang.Closure), any(groovy.lang.Closure)
  Finished: FAILURE
  </code></pre>
  
  <p>I do not see where or what is causing this error. I created a single job outside of the <code>buildJob(def jobList)</code> function and it is working but I need to do the loop to automation the jobs creation.</p>
  
  <p>Any ideas?</p>