You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/05/01 14:54:48 UTC

(camel) 01/02: (chores) ci: only run the code analysis on Java 17

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

orpiske pushed a commit to branch camel-4.0.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 4611d88d8f96853e6393e08644093a7c39ed5747
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Apr 26 13:59:51 2024 +0200

    (chores) ci: only run the code analysis on Java 17
---
 Jenkinsfile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index ba9bee45240..933df5a9cb3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -113,9 +113,11 @@ pipeline {
                         steps {
                             script {
                                 if ("${PLATFORM}" == "ubuntu") {
-                                    withCredentials([string(credentialsId: 'apache-camel-core', variable: 'SONAR_TOKEN')]) {
-                                        echo "Code quality review ENABLED for ${PLATFORM}"
-                                        sh "./mvnw $MAVEN_PARAMS -Dsonar.host.url=https://sonarcloud.io -Dsonar.java.experimental.batchModeSizeInKB=2048 -Dsonar.organization=apache -Dsonar.projectKey=apache_camel -Dsonar.branch.name=$BRANCH_NAME org.sonarsource.scanner.maven:sonar-maven-plugin:sonar"
+                                    if ("${JDK_NAME}" == "jdk_17_latest") {
+                                        withCredentials([string(credentialsId: 'apache-camel-core', variable: 'SONAR_TOKEN')]) {
+                                            echo "Code quality review ENABLED for ${PLATFORM}"
+                                            sh "./mvnw $MAVEN_PARAMS -Dsonar.host.url=https://sonarcloud.io -Dsonar.java.experimental.batchModeSizeInKB=2048 -Dsonar.organization=apache -Dsonar.projectKey=apache_camel -Dsonar.branch.name=$BRANCH_NAME org.sonarsource.scanner.maven:sonar-maven-plugin:sonar"
+                                        }
                                     }
                                 } else {
                                     echo "Code quality review disabled for ${PLATFORM}"