mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 17:05:49 +00:00
sonarqube-test3
This commit is contained in:
parent
09849e69c0
commit
44bd2d4e9e
1 changed files with 3 additions and 3 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -7,11 +7,11 @@ 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-test') {
|
||||
// requires SonarQube Scanner for Maven 3.6.3
|
||||
sh 'mvn package'
|
||||
// requires SonarQube Scanner for Maven 3.2+
|
||||
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue