From eb9ac14eb8979394cb4a43ad41f4506bde1841ea Mon Sep 17 00:00:00 2001 From: abhishek Date: Wed, 1 Nov 2023 09:25:08 +0530 Subject: [PATCH] added sonar cloud --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 3072e893a..dd92f79a9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,5 +13,11 @@ pipeline{ sh 'mvn package' } } + stage('Sonar Cloud Analysis'){ + steps{ + withSonarQubeEnv('SONAR_CLOUD') + sh 'mvn clean verify sonar:sonar -Dsonar.organization=springgit -Dsonar.projectKey=springgit' + } + } } } \ No newline at end of file