This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch OAK-10613
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 6efde7ab389df40bec2aea9b1295a2872ef9f5cb
Author: Julian Reschke <resc...@apache.org>
AuthorDate: Thu Jan 18 19:50:30 2024 +0100

    OAK-10613: Set Java version in Jenkinsfile to 17 (for SonarCloud)
---
 Jenkinsfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 7d368896ab..adb7c280c3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -43,7 +43,7 @@ def buildModule(moduleSpec) {
     }
     stage(moduleSpec) {
         node(label: 'ubuntu') {
-            def JAVA_JDK_11=tool name: 'jdk_11_latest', type: 
'hudson.model.JDK'
+            def JAVA_JDK_17=tool name: 'jdk_17_latest', type: 
'hudson.model.JDK'
             def MAVEN_3_LATEST=tool name: 'maven_3_latest', type: 
'hudson.tasks.Maven$MavenInstallation'
             def MAVEN_CMD = "mvn --batch-mode 
-Dmaven.repo.local=${env.HOME}/maven-repositories/${env.EXECUTOR_NUMBER}"
             def MONGODB_SUFFIX = sh(script: 'openssl rand -hex 4', 
returnStdout: true).trim()
@@ -56,7 +56,7 @@ def buildModule(moduleSpec) {
             '''
             timeout(70) {
                 checkout scm
-                
withEnv(["Path+JDK=$JAVA_JDK_11/bin","Path+MAVEN=$MAVEN_3_LATEST/bin","JAVA_HOME=$JAVA_JDK_11","MAVEN_OPTS=-Xmx1536M"])
 {
+                
withEnv(["Path+JDK=$JAVA_JDK_17/bin","Path+MAVEN=$MAVEN_3_LATEST/bin","JAVA_HOME=$JAVA_JDK_17","MAVEN_OPTS=-Xmx1536M"])
 {
                     sh '''
                     echo "MAVEN_OPTS is ${MAVEN_OPTS}"
                     '''

Reply via email to