mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:15: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
|
//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'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue