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

kwin pushed a commit to branch feature/sonar-with-java17
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git

commit e284bcb5e49bdee51c750446772271fe4f44790e
Author: Konrad Windszus <[email protected]>
AuthorDate: Fri Aug 18 09:17:18 2023 +0200

    SLING-12006 Run Sonar analysis with Java 17
    
    https://docs.sonarcloud.io/appendices/scanner-environment/
---
 vars/slingOsgiBundleBuild.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index a196152..16bc9c5 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -264,9 +264,9 @@ def analyseWithSonarCloud(def globalConfig, def jobConfig) {
     static final String SONAR_PLUGIN_GAV = 
'org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184'
     // Alls params are set, let's execute using #withCrendentials to hide and 
mask Robert's token
     withCredentials([string(credentialsId: 'sonarcloud-token-rombert', 
variable: 'SONAR_TOKEN')]) {
-        // always build with Java 11 (that is the minimum version supported: 
https://sonarcloud.io/documentation/appendices/end-of-support/)
+        // always build with Java 17 (that is the minimum version supported: 
https://docs.sonarcloud.io/appendices/scanner-environment/)
         withMaven(maven: globalConfig.mvnVersion,
-            jdk: jenkinsJdkLabel(11, globalConfig),
+            jdk: jenkinsJdkLabel(17, globalConfig),
             publisherStrategy: 'EXPLICIT') {
                 try {
                     String mvnCommand = "mvn -B -e ${SONAR_PLUGIN_GAV}:sonar 
${sonarcloudParams}"

Reply via email to