From de2610cd498fe64ffaa87174eb69eceaf6c8e391 Mon Sep 17 00:00:00 2001 From: Srinath Date: Sun, 6 Jun 2021 14:26:05 +0530 Subject: [PATCH] sonarqube --- Jenkinsfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 68c644dca..56e85d87e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,12 +7,12 @@ node { //maven package sh 'mvn package' } - stage ('archival') { - //archiving artifactory - archive 'target/*.jar' - } - stage ('test result') { - junit 'target/surefire-reports/*.xml' + stage('SonarQube analysis') { + // performing sonarqube analysis with "withSonarQubeENV()" + withSonarQubeEnv('SONAR-6.7.4') { + // requires SonarQube Scanner for Maven 3.2+ + sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar' } -} \ No newline at end of file + +}