From 6a1a79c658565c63f248c6e55b2f8cd7e5ab8aa4 Mon Sep 17 00:00:00 2001 From: Matt Pavlovich Date: Tue, 1 Oct 2024 11:07:37 -0500 Subject: [PATCH] [NO-JIRA] Jenkinsfile sonar credentials fix --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 90b478dea3..a994662a76 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -162,9 +162,10 @@ pipeline { when { expression { return params.sonarEnabled } } steps { - withCredentials([string(credentialsId: 'SONARCLOUD_TOKEN', variable: 'SONAR_TOKEN')]) - sh 'echo "Running the Sonar stage"' - sh 'mvn -B -e -fae clean verify sonar:sonar -Dsonar.projectKey=apache_activemq -Dsonar.organization=apache -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONAR_TOKEN} -Dsurefire.rerunFailingTestsCount=3' + withCredentials([string(credentialsId: 'SONARCLOUD_TOKEN', variable: 'SONAR_TOKEN')]) { + sh 'echo "Running the Sonar stage"' + sh 'mvn -B -e -fae clean verify sonar:sonar -Dsonar.projectKey=apache_activemq -Dsonar.organization=apache -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONAR_TOKEN} -Dsurefire.rerunFailingTestsCount=3' + } } }