mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 17:05:49 +00:00
sonarqube
This commit is contained in:
parent
ddc18be9cd
commit
de2610cd49
1 changed files with 7 additions and 7 deletions
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
@ -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(<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'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue