[NO-JIRA] Enable sonar cloud analysis

This commit is contained in:
Matt Pavlovich 2024-10-01 10:21:23 -05:00 committed by Matt Pavlovich
parent 490fdbb447
commit 8df46ca989
1 changed files with 3 additions and 0 deletions

3
Jenkinsfile vendored
View File

@ -160,8 +160,11 @@ pipeline {
stage('Quality') {
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'
}
}