diff --git a/Jenkinsfile b/Jenkinsfile index da11262957ee..3672a3005ca6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,13 +11,13 @@ pipeline { stages { stage("Parallel Stage") { parallel { - stage("Build / Test - JDK19") { + stage("Build / Test - JDK21") { agent { node { label 'linux' } } steps { timeout( time: 180, unit: 'MINUTES' ) { checkout scm - mavenBuild( "jdk19", "clean install -Dspotbugs.skip=true -Djacoco.skip=true", "maven3") - recordIssues id: "jdk19", name: "Static Analysis jdk19", aggregatingResults: true, enabledForFailure: true, tools: [mavenConsole(), java(), checkStyle()] + mavenBuild( "jdk21", "clean install -Dspotbugs.skip=true -Djacoco.skip=true", "maven3") + recordIssues id: "jdk21", name: "Static Analysis jdk21", aggregatingResults: true, enabledForFailure: true, tools: [mavenConsole(), java(), checkStyle()] } } } diff --git a/jetty-jaas/pom.xml b/jetty-jaas/pom.xml index 1e078ad43b67..5576064b61ea 100644 --- a/jetty-jaas/pom.xml +++ b/jetty-jaas/pom.xml @@ -166,6 +166,28 @@ + + jdk20 + + [20,) + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + + **/JAASLdapLoginServiceTest* + + + + + + + diff --git a/jetty-jaas/src/test/java/org/eclipse/jetty/jaas/JAASLdapLoginServiceTest.java b/jetty-jaas/src/test/java/org/eclipse/jetty/jaas/JAASLdapLoginServiceTest.java index 3922826aa474..36f5b9ebec7e 100644 --- a/jetty-jaas/src/test/java/org/eclipse/jetty/jaas/JAASLdapLoginServiceTest.java +++ b/jetty-jaas/src/test/java/org/eclipse/jetty/jaas/JAASLdapLoginServiceTest.java @@ -31,6 +31,8 @@ import org.eclipse.jetty.server.Request; import org.eclipse.jetty.server.UserIdentity; import org.junit.Test; +import org.junit.jupiter.api.condition.EnabledForJreRange; +import org.junit.jupiter.api.condition.JRE; import org.junit.runner.RunWith; import static org.junit.Assert.assertFalse; @@ -41,6 +43,7 @@ /** * JAASLdapLoginServiceTest */ +@EnabledForJreRange(max = JRE.JAVA_17, disabledReason = "sun.security.x509.X509CertInfo.set not present in Java 21, needs a Java 21 compatible version of Apache Directory Server") @RunWith(FrameworkRunner.class) @CreateLdapServer(transports = {@CreateTransport(protocol = "LDAP")}) @CreateDS(allowAnonAccess = false, partitions = { diff --git a/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java b/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java index 169fbce48e96..41b751027e0f 100644 --- a/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java +++ b/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java @@ -1436,7 +1436,7 @@ public void testDryRunProperties() throws Exception } @Test - @DisabledForJreRange(max = JRE.JAVA_18) + @EnabledForJreRange(min = JRE.JAVA_19, max = JRE.JAVA_20) public void testVirtualThreadPoolPreview() throws Exception { String jettyVersion = System.getProperty("jettyVersion");