From 7a86e85f3d9dda89ddf1d653119cbf2cbe52eb67 Mon Sep 17 00:00:00 2001 From: Matt Pavlovich Date: Tue, 1 Oct 2024 10:26:40 -0500 Subject: [PATCH] [NO-JIRA] Jenkinsfile syntax fix for sonar --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d511364738..90b478dea3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -162,7 +162,7 @@ pipeline { when { expression { return params.sonarEnabled } } steps { - withCredentials([string(credentialsId: 'SONARCLOUD_TOKEN', variable: 'SONAR_TOKEN')]) { + 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' }