title: Jenkins DSL Pipeline plugin groovy.lang.MissingMethodException: No signature of method: script.pipelineJob()
body: <p>For my local/debug test I have generate xml step. I wan't to add plugin Pipeline Plugin, but I can't figure out which dependency it is, or if I have wrong classpath, or?</p>
  
  <p>my code</p>
  
  <pre><code> import javaposse.jobdsl.dsl.DslFactory
   import javaposse.jobdsl.dsl.jobs.WorkflowJob
  
   pipeline = dslFactory.pipelineJob(name)
  </code></pre>
  
  <p>causes this expception</p>
  
  <pre><code>    Caused by: groovy.lang.MissingMethodException: No signature of method: script.pipelineJob() is applicable for argument types: (java.lang.String) values: [ps-landing-pipeline]
  </code></pre>
  
  <p>my dependecies (build.gradle)</p>
  
  <pre><code>dependencies {
      compile 'org.codehaus.groovy:groovy:2.1.3'
      compile 'org.jenkins-ci.plugins:job-dsl-core:1.45'
      compile 'org.jenkins-ci.plugins.workflow:workflow-aggregator:2.4'
      testCompile('org.spockframework:spock-core:0.7-groovy-2.0') {
          exclude module: 'groovy-all'
      }
      // for the RestApiScriptRunner and XmlOutputRunner
      compile('ant:ant:1.7.0')
  }
  </code></pre>