ghale / gradle-jenkins-plugin

Gradle plugin to programmatically configure Jenkins jobs.
123 stars 42 forks source link

Support of jenkins plugins #93

Closed tschlue closed 4 years ago

tschlue commented 4 years ago

Hi,

I'm testing to use gradle for generating jenkins-jobs instead of only dsl-files. Now I have the problem that plugins which I try to use in the dsl-scripts doesn't get found

No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.notifyBitbucket()

I added the following to the build.gradle

buildscript {
  repositories {
    jcenter()
    maven { url "https://plugins.gradle.org/m2/" }
    maven { url 'https://repo.jenkins-ci.org/releases/' }
    mavenLocal()
  }

  dependencies {
    classpath 'com.terrafolio:gradle-jenkins-plugin:1.3.4'
    classpath 'org.jenkins-ci.plugins:job-dsl-core:1.58'
    classpath 'io.jenkins.plugins:warnings-ng:6.+'
    classpath 'org.jenkins-ci.plugins:copyartifact:1.42'
    classpath 'org.jenkins-ci.plugins:stashNotifier:1.11.6'
    classpath 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.2'
    classpath 'org.eclipse.hudson:hudson-core:3.1.2'
  }
}

But neither the 'warnings-ng'- nor the 'copyartifatct'- or the 'stashNotifier'-plugin works. I hope that's not a big issue because at the moment the gradle-jenkins-plugin looks really probmising.