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 + +}