From bafcb74e906f3caee202a87c9ecb2431837ac127 Mon Sep 17 00:00:00 2001 From: Zohar Date: Sun, 7 Apr 2024 15:36:58 -0400 Subject: [PATCH] test --- Jenkinsfile-1 | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/Jenkinsfile-1 b/Jenkinsfile-1 index feb60ee84..0bc7c24f2 100644 --- a/Jenkinsfile-1 +++ b/Jenkinsfile-1 @@ -1,21 +1,11 @@ -pipeline { - agent any - stages { - stage('SonarQube analysis') { - steps { - script { - withSonarQubeEnv("sq1"){ - def mvnHome = tool "M3" - sh """ - ${mvnHome}/bin/mvn sonar:sonar - -Dsonar.projectKey=Web - -Dsonar.host.url=http://localhost:9000/ - -Dsonar.login=squ_ea9632ad9d734f30372ed61b6565f2fa028e8e5e - - """ - } - } - } - } +node { + stage('SCM') { + checkout scm + } + stage('SonarQube Analysis') { + def mvn = tool 'M3'; + withSonarQubeEnv("sq1") { + sh "${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=Web -Dsonar.projectName='Web'" } -} + } +} \ No newline at end of file