sonarqube

This commit is contained in:
Srinath 2021-06-06 14:44:44 +05:30
parent de2610cd49
commit 3a3e0d2777

4
Jenkinsfile vendored
View file

@ -7,12 +7,12 @@ node {
//maven package
sh 'mvn package'
}
stage('SonarQube analysis') {
stage('SonarQube analysis') {
// performing sonarqube analysis with "withSonarQubeENV(<Name of Server configured in Jenkins>)"
withSonarQubeEnv('SONAR-6.7.4') {
// requires SonarQube Scanner for Maven 3.2+
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar'
}
}
}