mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
b604ab0c97
commit
ac983026fb
1 changed files with 4 additions and 5 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -7,11 +7,6 @@ node('master'){
|
|||
sh label: '', script: 'mvn clean package'
|
||||
}
|
||||
|
||||
stage('postbuild'){
|
||||
junit '**/target/surefire-reports/*.xml'
|
||||
archiveArtifacts 'target/*.jar'
|
||||
}
|
||||
|
||||
stage('Sonar') {
|
||||
withSonarQubeEnv('sonar') {
|
||||
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar'
|
||||
|
@ -23,6 +18,10 @@ node('master'){
|
|||
if (qg.status != 'OK') {
|
||||
error "Pipeline aborted due to quality gate failure: ${qg.status}"
|
||||
}
|
||||
stage('postbuild'){
|
||||
junit '**/target/surefire-reports/*.xml'
|
||||
archiveArtifacts 'target/*.jar'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue