added sonarqube

This commit is contained in:
Bharatkumar5690 2023-03-08 12:51:45 +05:30
parent 06c58f1591
commit 724b1552a5

2
Jenkinsfile vendored
View file

@ -15,7 +15,7 @@ pipeline {
stage('Test the code by using sonarqube') {
steps {
withSonarQubeEnv('SONAR_CLOUD') {
sh 'mvn clean verify sonar:sonar -Dsonar.login=ea06c1ce5d1ee81e35db29d8cb0de69b42c70278 -Dsonar.organization=springpetclinic-1'
sh 'mvn clean verify sonar:sonar -Dsonar.login=ea06c1ce5d1ee81e35db29d8cb0de69b42c70278 -Dsonar.organization=springpetclinic-1 -Dsonar.projectKey=springpetclinic-1_bha'
}
}
}