From a5aa18e61911f4a5ebe2c0e97ab94f94498dcd86 Mon Sep 17 00:00:00 2001 From: Zohar Date: Sun, 7 Apr 2024 15:28:01 -0400 Subject: [PATCH] test --- Jenkinsfile-1 | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile-1 b/Jenkinsfile-1 index dcd3d196f..3af368d5c 100644 --- a/Jenkinsfile-1 +++ b/Jenkinsfile-1 @@ -4,10 +4,16 @@ pipeline { stage('SonarQube analysis') { steps { script { - scannerHome = tool 'SonarQubeScanner'; - } - withSonarQubeEnv('My SonarQube Server') { - sh "${scannerHome}/bin/sonar-scanner" + withSonarQubeEnv("sq1"){ + def mvnHome = tool "M3" + sh """ + ${mvnHome}/bin/mvn sonar:sonar \ + -Dsonar.projectKey=Web \ // Replace with your actual project key + -Dsonar.host.url=http://localhost:9000/ \ + -Dsonar.login=squ_ea9632ad9d734f30372ed61b6565f2fa028e8e5e // Replace with your actual SonarQube token + + """ + } } } }