From bb7efcffc9ea1838c3ef9580de5ee232657f1a59 Mon Sep 17 00:00:00 2001 From: jhansi06 Date: Tue, 16 Dec 2025 13:36:11 +0530 Subject: [PATCH] scan --- Jenkinsfile | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1a3217103..de2d4ad67 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,16 +25,20 @@ pipeline { steps { withSonarQubeEnv('sonarqube') { sh """ - - ${tool 'SonarScanner'}/bin/sonar-scanner \ - -Dsonar.projectKey=spring-petclinic \ - -Dsonar.projectName=spring-petclinic\ - -Dsonar.sources=. \ - -Dsonar.sourceEncoding=UTF-8 - """ + + ./mvnw clean verify sonar:sonar \ + -Dsonar.projectKey=spring-petclinic \ + -Dsonar.projectName=spring-petclinic + + """ } } - } - - } -} \ No newline at end of file + } + + + } + +} + + +