You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2020/11/05 17:04:20 UTC

[sling-tooling-jenkins] branch master updated: SLING-9880 - run SonarQube analysis with jdk 11

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

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git


The following commit(s) were added to refs/heads/master by this push:
     new e8dc5c7  SLING-9880 - run SonarQube analysis with jdk 11
e8dc5c7 is described below

commit e8dc5c72f713059d16298b42ab510ab4d1ade714
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Thu Nov 5 17:58:29 2020 +0100

    SLING-9880 - run SonarQube analysis with jdk 11
---
 vars/slingOsgiBundleBuild.groovy | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index 90873f4..e58376c 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -4,6 +4,7 @@ def call(Map params = [:]) {
 
     def globalConfig = [
         availableJDKs : [ 8: 'jdk_1.8_latest', 9: 'jdk_1.9_latest', 10: 'jdk_10_latest', 11: 'jdk_11_latest', 12: 'jdk_12_latest', 13: 'jdk_13_latest', 14: 'jdk_14_latest', 15: 'jdk_15_latest', 16: 'jdk_16_latest'],
+        sonarQubeJdk: '11',
         mvnVersion : 'maven_3_latest',
         mainNodeLabel : 'ubuntu',
         githubCredentialsId: 'sling-github-token'
@@ -51,7 +52,8 @@ def call(Map params = [:]) {
                         // 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')]) {
                             withMaven(maven: globalConfig.mvnVersion, 
-                                jdk: jenkinsJdkLabel(jobConfig.jdks[0], globalConfig),
+                                // SonarQube now neeeds JDK 11, SLING-9880
+                                jdk: jenkinsJdkLabel(globalConfig.sonarQubeJdk, globalConfig),
                                 publisherStrategy: 'EXPLICIT') {
                                     try {
                                          sh  "mvn -U clean verify sonar:sonar ${sonarcloudParams} -Pci"