Is there a way to use the Jenkins integration tests with Java 8? I configured my unit test to use a Jenkins instance using the JUnit rule:
@Rule
public JenkinsRule jenkins = new JenkinsRule();
When I start the tests with maven and JAVA_HOME set to a Java 8 JDK then the
tests fail with:
java.lang.IllegalStateException: second instance
at jenkins.model.Jenkins.<init>(Jenkins.java:752)
at hudson.model.Hudson.<init>(Hudson.java:81)
at org.jvnet.hudson.test.JenkinsRule.newHudson(JenkinsRule.java:522)
at org.jvnet.hudson.test.JenkinsRule.before(JenkinsRule.java:326)
at org.jvnet.hudson.test.JenkinsRule$2.evaluate(JenkinsRule.java:467)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
There is also an issue open at
https://issues.jenkins-ci.org/browse/JENKINS-23239
It works without problems using JDK 6 or 7.
signature.asc
Description: Message signed with OpenPGP using GPGMail
