added sonar cloud

This commit is contained in:
abhishek 2023-11-01 09:25:08 +05:30
parent bfbf9134d9
commit eb9ac14eb8

6
Jenkinsfile vendored
View file

@ -13,5 +13,11 @@ pipeline{
sh 'mvn package' sh 'mvn package'
} }
} }
stage('Sonar Cloud Analysis'){
steps{
withSonarQubeEnv('SONAR_CLOUD')
sh 'mvn clean verify sonar:sonar -Dsonar.organization=springgit -Dsonar.projectKey=springgit'
}
}
} }
} }