mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
sonarqube
This commit is contained in:
parent
de2610cd49
commit
3a3e0d2777
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -7,12 +7,12 @@ node {
|
||||||
//maven package
|
//maven package
|
||||||
sh 'mvn package'
|
sh 'mvn package'
|
||||||
}
|
}
|
||||||
stage('SonarQube analysis') {
|
stage('SonarQube analysis') {
|
||||||
// performing sonarqube analysis with "withSonarQubeENV(<Name of Server configured in Jenkins>)"
|
// performing sonarqube analysis with "withSonarQubeENV(<Name of Server configured in Jenkins>)"
|
||||||
withSonarQubeEnv('SONAR-6.7.4') {
|
withSonarQubeEnv('SONAR-6.7.4') {
|
||||||
// requires SonarQube Scanner for Maven 3.2+
|
// requires SonarQube Scanner for Maven 3.2+
|
||||||
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar'
|
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue