diff --git a/Jenkinsfile b/Jenkinsfile index cf9dceaa7ce..d42ab4e127c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,18 +3,17 @@ pipeline { agent any // save some io during the build - options { durabilityHint( 'PERFORMANCE_OPTIMIZED' ) } + options { durabilityHint('PERFORMANCE_OPTIMIZED') } stages { - stage( "Parallel Stage" ) { + stage("Parallel Stage") { parallel { - stage( "Build / Test - JDK11" ) { - agent { - node { label 'linux' } - } + stage("Build / Test - JDK11") { + agent { node { label 'linux' } } steps { - container( 'jetty-build' ) { + container('jetty-build') { timeout( time: 120, unit: 'MINUTES' ) { - mavenBuild( "jdk11", "-T3 clean install -Premote-session-tests -Pgcloud", "maven3", true ) // -Pautobahn + mavenBuild( "jdk11", "-T3 clean install -Premote-session-tests -Pgcloud", "maven3", + [[parserName: 'Maven'], [parserName: 'Java']] ) // -Pautobahn // Collect up the jacoco execution results (only on main build) jacoco inclusionPattern: '**/org/eclipse/jetty/**/*.class', exclusionPattern: '' + @@ -33,20 +32,18 @@ pipeline { execPattern: '**/target/jacoco.exec', classPattern: '**/target/classes', sourcePattern: '**/src/main/java' - warnings consoleParsers: [[parserName: 'Maven'], [parserName: 'Java']] - junit testResults: '**/target/surefire-reports/*.xml,**/target/invoker-reports/TEST*.xml,**/target/autobahntestsuite-reports/*.xml' } } } } + stage("Build / Test - JDK15") { agent { node { label 'linux' } } steps { container( 'jetty-build' ) { timeout( time: 120, unit: 'MINUTES' ) { - mavenBuild( "jdk15", "-T3 clean install -Premote-session-tests -Pgcloud -Djacoco.skip=true", "maven3", true ) - warnings consoleParsers: [[parserName: 'Maven'], [parserName: 'Java']] - junit testResults: '**/target/surefire-reports/*.xml,**/target/invoker-reports/TEST*.xml' + mavenBuild( "jdk15", "clean install -T3 -Djacoco.skip=true -Premote-session-tests -Pgcloud -Djacoco.skip=true", "maven3", + [[parserName: 'Maven'], [parserName: 'Java']]) } } } @@ -79,17 +76,16 @@ pipeline { } } - def slackNotif() { script { try { - if (env.BRANCH_NAME == 'jetty-10.0.x' || env.BRANCH_NAME == 'jetty-9.4.x' || env.BRANCH_NAME == 'jetty-11.0.x') { + if ( env.BRANCH_NAME == 'jetty-10.0.x' || env.BRANCH_NAME == 'jetty-9.4.x' || env.BRANCH_NAME == 'jetty-11.0.x') { //BUILD_USER = currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId() // by ${BUILD_USER} COLOR_MAP = ['SUCCESS': 'good', 'FAILURE': 'danger', 'UNSTABLE': 'danger', 'ABORTED': 'danger'] slackSend channel: '#jenkins', - color: COLOR_MAP[currentBuild.currentResult], - message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} - ${env.BUILD_URL}" + color: COLOR_MAP[currentBuild.currentResult], + message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} - ${env.BUILD_URL}" } } catch (Exception e) { e.printStackTrace() @@ -105,24 +101,27 @@ def slackNotif() { * * @param jdk the jdk tool name (in jenkins) to use for this build * @param cmdline the command line in " "`format. - * @paran mvnName maven installation to use * @return the Jenkinsfile step representing a maven build */ -def mavenBuild(jdk, cmdline, mvnName, junitPublishDisabled) { - def localRepo = ".repository" - def mavenOpts = '-Xms1g -Xmx4g -Djava.awt.headless=true' - - withMaven( - maven: mvnName, - jdk: "$jdk", - publisherStrategy: 'EXPLICIT', - options: [junitPublisher(disabled: junitPublishDisabled), mavenLinkerPublisher(disabled: false), pipelineGraphPublisher(disabled: false)], - mavenOpts: mavenOpts, - mavenLocalRepo: localRepo) { - // Some common Maven command line + provided command line - sh "mvn -Pci -V -B -e -fae -Dmaven.test.failure.ignore=true -Djetty.testtracker.log=true $cmdline -Dunix.socket.tmp=" + env.JENKINS_HOME +def mavenBuild(jdk, cmdline, mvnName, consoleParsers) { + script { + try { + withEnv(["JAVA_HOME=${ tool "$jdk" }", + "PATH+MAVEN=${ tool "$jdk" }/bin:${tool "$mvnName"}/bin", + "MAVEN_OPTS=-Xms2g -Xmx4g -Djava.awt.headless=true"]) { + configFileProvider( + [configFile(fileId: 'oss-settings.xml', variable: 'GLOBAL_MVN_SETTINGS')]) { + sh "mvn -s $GLOBAL_MVN_SETTINGS -DsettingsPath=$GLOBAL_MVN_SETTINGS -Pci -V -B -e -Djetty.testtracker.log=true $cmdline -Dunix.socket.tmp=" + + env.JENKINS_HOME + } + } + } finally { + junit testResults: '**/target/surefire-reports/*.xml,**/target/invoker-reports/TEST*.xml,**/h2spec-reports/*.xml', allowEmptyResults: true + if(consoleParsers!=null) { + warnings consoleParsers: consoleParsers + } + } } } - // vim: et:ts=2:sw=2:ft=groovy diff --git a/apache-jstl/pom.xml b/apache-jstl/pom.xml index df81b031bca..18a1f7186ee 100644 --- a/apache-jstl/pom.xml +++ b/apache-jstl/pom.xml @@ -72,6 +72,12 @@ test + + org.slf4j + slf4j-simple + test + + diff --git a/build-resources/pom.xml b/build-resources/pom.xml index 6e6de0f7032..4dad7e97567 100644 --- a/build-resources/pom.xml +++ b/build-resources/pom.xml @@ -25,6 +25,7 @@ org.apache.maven.plugins maven-javadoc-plugin + 3.2.0 true diff --git a/demos/embedded/src/test/java/org/eclipse/jetty/demos/ServerWithJMXTest.java b/demos/embedded/src/test/java/org/eclipse/jetty/demos/ServerWithJMXTest.java index 1bab334da7b..6cfe7ac0348 100644 --- a/demos/embedded/src/test/java/org/eclipse/jetty/demos/ServerWithJMXTest.java +++ b/demos/embedded/src/test/java/org/eclipse/jetty/demos/ServerWithJMXTest.java @@ -27,10 +27,12 @@ import org.eclipse.jetty.jmx.MBeanContainer; import org.eclipse.jetty.server.Server; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertTrue; +@Disabled public class ServerWithJMXTest extends AbstractEmbeddedTest { private Server server; diff --git a/jetty-http2/http2-server/pom.xml b/jetty-http2/http2-server/pom.xml index 9ace4fceea4..71738a965fe 100644 --- a/jetty-http2/http2-server/pom.xml +++ b/jetty-http2/http2-server/pom.xml @@ -33,6 +33,8 @@ ${skipTests} org.eclipse.jetty.h2spec true + ${project.build.directory}/h2spec-reports + true 3.5 - Sends invalid connection preface diff --git a/jetty-jaas/pom.xml b/jetty-jaas/pom.xml index 7bd18741edc..dc99975bf4c 100644 --- a/jetty-jaas/pom.xml +++ b/jetty-jaas/pom.xml @@ -122,6 +122,11 @@ + + org.apache.directory.api + api-ldap-schema-data + 2.0.0 + org.junit.vintage diff --git a/jetty-servlets/pom.xml b/jetty-servlets/pom.xml index 8b08133ba71..c579ba758ec 100644 --- a/jetty-servlets/pom.xml +++ b/jetty-servlets/pom.xml @@ -21,7 +21,7 @@ maven-surefire-plugin - @{argLine} ${jetty.surefire.argLine} --add-modules jetty.servlet.api --add-modules org.eclipse.jetty.util --add-modules org.eclipse.jetty.io --add-modules org.eclipse.jetty.http --add-modules org.eclipse.jetty.server --add-modules org.eclipse.jetty.jmx --add-reads org.eclipse.jetty.servlets=java.management --add-reads org.eclipse.jetty.servlets=org.eclipse.jetty.jmx + @{argLine} ${jetty.surefire.argLine} --add-modules jetty.servlet.api --add-modules org.eclipse.jetty.util --add-modules org.eclipse.jetty.io --add-modules org.eclipse.jetty.http --add-modules org.eclipse.jetty.server --add-reads org.eclipse.jetty.servlets=java.management --add-reads org.eclipse.jetty.servlets=org.eclipse.jetty.jmx diff --git a/jetty-webapp/pom.xml b/jetty-webapp/pom.xml index 15b2a110a6e..26fa7d95611 100644 --- a/jetty-webapp/pom.xml +++ b/jetty-webapp/pom.xml @@ -42,7 +42,7 @@ maven-surefire-plugin - @{argLine} ${jetty.surefire.argLine} --add-modules org.eclipse.jetty.jmx + @{argLine} ${jetty.surefire.argLine} false diff --git a/pom.xml b/pom.xml index 941f5c2026b..b957ec7ca2d 100644 --- a/pom.xml +++ b/pom.xml @@ -47,10 +47,10 @@ false - -Dfile.encoding=UTF-8 -Duser.language=en -Duser.region=US -showversion -Xmx2g -Xms2g -Xlog:gc:stderr:time,level,tags + -Dfile.encoding=UTF-8 -Duser.language=en -Duser.region=US -showversion -Xmx4g -Xms2g -Xlog:gc:stderr:time,level,tags - 3.0.0-M4 + 3.0.0-M5 3.8.1 3.1.2 3.2.0 @@ -650,6 +650,7 @@ maven-surefire-plugin ${maven.surefire.version} + false ${surefire.rerunFailingTestsCount} 3600 @@ -1176,6 +1177,16 @@ ant-launcher ${ant.version} + + commons-codec + commons-codec + 1.13 + + + org.apache.commons + commons-lang3 + 3.9 + @@ -1354,9 +1365,7 @@ ci - ${env.GLOBAL_MVN_SETTINGS} - true - 3 + 0