Hi,
I was try to implement this GitHub - ghale/gradle-jenkins-plugin: Gradle plugin to programmatically configure Jenkins jobs. tutorial in my local…
My Build.gradle fils as below. buildscript { repositories { jcenter() } dependencies { classpath(‘com.terrafolio:gradle-jenkins-plugin:1.2.3’) classpath “nl.ikoodi.gradle.plugin:gradle-jenkins-jobdsl:0.1.5” classpath “com.github.fowlie:gradle-jenkins-test:0.3”
} } apply plugin: “com.terrafolio.jenkins” apply plugin: “nl.ikoodi.jenkins.jobdsl” apply plugin: “com.github.fowlie.gradle-jenkins-test”
jenkins { // server definitions servers { demo { url ‘http://localhost:8080’ secure false } } defaultServer servers.demo // template definitions templates { template_job { dsl { description “This is a job derived from a template…” displayName “Template Job” steps { shell ‘echo “Gradle Rocks!”’ } } } } // job definitions jobs { [ “build”, “release” ].each { buildType → “build_${buildType}” { dsl { using ‘template_job’ displayName “Cool ${buildType.capitalize()} Job” steps { gradle(buildType) } } } } } }
when I try to execute gradle tasks …Im getting bellow error…
- What went wrong: A problem occurred evaluating root project ‘Gradle_Jenkins_managemnet’. > Failed to apply plugin [id ‘com.terrafolio.jenkins’]
Could not create task of type ‘UpdateJenkinsItemsTask’.
could you help me to get resolve this…thanks in advance…