-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Gradle JPI 0.18.1
Jenkins 1.609.3
Hi,
I'm working on a plugin, the Seed plugin, and I'm using the Gradle JPI plugin for quite some time already. I've started to refactor my integration tests to use the JenkinsRule.
My plugin depends on a number of plugins in order to work and I've the following configuration:
jenkinsPlugins 'org.jenkins-ci.plugins:parameterized-trigger:2.26@jar' jenkinsPlugins 'org.jenkins-ci.plugins:cloudbees-folder:4.7@jar' jenkinsPlugins 'org.jenkins-ci.plugins:gradle:1.24@jar' jenkinsPlugins 'org.jenkins-ci.plugins:envinject:1.92.1@jar' jenkinsPlugins 'org.jenkins-ci.plugins:description-setter:1.10@jar' jenkinsPlugins 'org.jenkins-ci.plugins:conditional-buildstep:1.3.3@jar' jenkinsPlugins 'org.jenkins-ci.plugins:credentials:1.22@jar' optionalJenkinsPlugins 'org.jenkins-ci.plugins:git:2.3.5@jar' optionalJenkinsPlugins 'org.jenkins-ci.plugins:subversion:2.5.7@jar' jenkinsPlugins "org.jenkins-ci.plugins:job-dsl:1.35@jar" providedCompile "org.jenkins-ci.plugins:job-dsl-core:1.35@jar" providedCompile "org.jenkins-ci.plugins:job-dsl:1.35@jar" // Testing testCompile 'org.mockito:mockito-core:1.9.5' testCompile 'org.eclipse.jgit:org.eclipse.jgit:4.3.1.201605051710-r' testCompile 'org.tmatesoft.svnkit:svnkit:1.8.12'
However, when the JenkinsRule creates the Jenkins instance, I start having errors like:
java.lang.ClassNotFoundException: hudson.plugins.git.GitException
java.lang.NoClassDefFoundError: hudson/matrix/listeners/MatrixBuildListener
java.lang.NoClassDefFoundError: org/jenkinsci/lib/envinject/EnvInjectException
etc.
Of course, no test would pass then...
I could not understand what was going on, and the resolveTestDependencies task was working fine. In order to pin point the issue, I've created this minimalistic repository which reproduces the problem:
https://github.com/dcoraboeuf/jpi-plugin-test
Any idea what I could do wrong here?
Thanks,
Damien.
- duplicates
-
JENKINS-35412 Dependency list not the same for pom.xml and build.gradle using gradle-jpi-plugin
- Closed