From 5ba22faa6887b43b2dfad5887c5fe92d871090fc Mon Sep 17 00:00:00 2001 From: sridhar Date: Wed, 13 Sep 2023 21:52:51 +0530 Subject: [PATCH] added envi sonar --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 5839fdfc5..733bc60a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,9 +20,11 @@ pipeline{ } stage('SonarQube Scan') { steps { + withSonarQubeEnv('SONAR_CLOUD') { sh 'mvn clean package sonar:sonar -Dsonar.organization=springpetclinic -Dsonar.token=94fa8a4b44707c54a1aae9c4894e0cd8bf0d18d6 -Dsonar.projectKey=sridhardevops006' } } + } stage('nexus'){ steps{