This is an automated email from the ASF dual-hosted git repository.
apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new d43996526a8a Skip JDK version check on Jenkins CI for JDK 17
d43996526a8a is described below
commit d43996526a8a1cefbaf0b2a3e575a7fc662fa47b
Author: Aurélien Pupier <[email protected]>
AuthorDate: Fri Apr 17 08:46:05 2026 +0200
Skip JDK version check on Jenkins CI for JDK 17
to allow testing with JDK 17.
A more precise way would be to build with JDK 21 and launch only the
test with JDK 17 but it requires far much work.
also launch test with jdk 21 on ppc64le and s390x qs jdk 21 is our main
target (it also avoids having specific case for them)
currently all enforcers rules are disabled with jdk17, to improve to
skip only the java check
note that I tried to use global environment conditional directly but not
managed to ;ake it zorking, thus the condition at the mvnw level
Signed-off-by: Aurélien Pupier <[email protected]>
---
Jenkinsfile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 259e7225f185..7ffd8774df91 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,6 +17,7 @@
def MAVEN_PARAMS = "-B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true
-Dsurefire.rerunFailingTestsCount=2 -Dfailsafe.rerunFailingTestsCount=1"
def MAVEN_TEST_PARAMS = env.MAVEN_TEST_PARAMS ?: "-Dci.env.name=apache.org"
def MAVEN_TEST_PARAMS_UBUNTU = env.MAVEN_TEST_PARAMS ?:
"-Dci.env.name=apache.org"
+def MAVEN_JDK_17_PARAMS = "-Denforcer.skip=true"
/*
Below parameters are required for camel/core/camel-core module's test cases to
pass on ppc64 and s390x
- xpathExprGrpLimit: limits the number of groups an Xpath expression can
contain
@@ -82,7 +83,7 @@ pipeline {
exclude {
axis {
name 'JDK_NAME'
- values 'jdk_21_latest'
+ values 'jdk_17_latest'
}
axis {
name 'PLATFORM'
@@ -92,7 +93,7 @@ pipeline {
exclude {
axis {
name 'JDK_NAME'
- values 'jdk_21_latest'
+ values 'jdk_17_latest'
}
axis {
name 'PLATFORM'
@@ -142,6 +143,8 @@ pipeline {
if ("${JDK_NAME}" == "jdk_21_latest") {
// Enable virtual threads and
coverage required later by Sonar check
sh "./mvnw $MAVEN_PARAMS
$MAVEN_TEST_PARAMS_UBUNTU -Darchetype.test.skip
-Dmaven.test.failure.ignore=true -Dcheckstyle.skip=true install
-Dcamel.threads.virtual.enabled=${params.VIRTUAL_THREAD} -Pcoverage"
+ } else if ("${JDK_NAME}" ==
"jdk_17_latest") {
+ sh "./mvnw $MAVEN_PARAMS
$MAVEN_TEST_PARAMS $MAVEN_JDK_17_PARAMS -Darchetype.test.skip
-Dmaven.test.failure.ignore=true -Dcheckstyle.skip=true install"
} else {
sh "./mvnw $MAVEN_PARAMS
$MAVEN_TEST_PARAMS -Darchetype.test.skip -Dmaven.test.failure.ignore=true
-Dcheckstyle.skip=true install"
}