2016-12-23 20 views
1

私のローカル/デバッグテストでは、xmlステップを生成しています。私はプラグインのPipeline Pluginを追加することはできませんが、どの依存関係があるのか​​、間違ったクラスパスがあるのか​​分かりませんか?Jenkins DSL Pipelineプラグインgroovy.lang.MissingMethodException:メソッドのシグネチャがありません:script.pipelineJob()

問題だった、私はDSLの悪いバージョンを持っていたところ私が見つけた私のコード

import javaposse.jobdsl.dsl.DslFactory 
import javaposse.jobdsl.dsl.jobs.WorkflowJob 

pipeline = dslFactory.pipelineJob(name) 

原因このexpception

Caused by: groovy.lang.MissingMethodException: No signature of method: script.pipelineJob() is applicable for argument types: (java.lang.String) values: [ps-landing-pipeline] 

私の依存性(build.gradle)

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') 
} 

答えて

0

- コア

enter image description here

:私はAPIのビューアで見られる必要がある>バージョン -

compile 'org.jenkins-ci.plugins:job-dsl-core:1.47' 

VS

関連する問題