This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch camel-4.4.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit a90e19ef8ffab425b510413f9ecb8af25fdebdca Author: Otavio Rodolfo Piske <angusyo...@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}"