Für meine lokale/Debug-Test habe ich XML-Schritt generieren. Ich möchte Plugin Plugin Plugin hinzufügen, aber ich kann nicht herausfinden, welche Abhängigkeit es ist, oder wenn ich falsche Klassenpfad habe, oder?Jenkins DSL-Pipeline-Plugin groovy.lang.MissingMethodException: Keine Signatur der Methode: script.pipelineJob()
meinen Code
import javaposse.jobdsl.dsl.DslFactory
import javaposse.jobdsl.dsl.jobs.WorkflowJob
pipeline = dslFactory.pipelineJob(name)
Ursachen dieser expception
Caused by: groovy.lang.MissingMethodException: No signature of method: script.pipelineJob() is applicable for argument types: (java.lang.String) values: [ps-landing-pipeline]
meine dependecies (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')
}