sonarqube

This commit is contained in:
Srinath 2021-06-06 14:26:05 +05:30
parent ddc18be9cd
commit de2610cd49

12
Jenkinsfile vendored
View file

@ -7,12 +7,12 @@ node {
//maven package //maven package
sh 'mvn package' sh 'mvn package'
} }
stage ('archival') { stage('SonarQube analysis') {
//archiving artifactory // performing sonarqube analysis with "withSonarQubeENV(<Name of Server configured in Jenkins>)"
archive 'target/*.jar' withSonarQubeEnv('SONAR-6.7.4') {
} // requires SonarQube Scanner for Maven 3.2+
stage ('test result') { sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar'
junit 'target/surefire-reports/*.xml'
} }
} }