mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
ac983026fb
commit
ca9f60a20c
1 changed files with 2 additions and 9 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -12,17 +12,10 @@ node('master'){
|
||||||
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar'
|
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar'
|
||||||
}
|
}
|
||||||
|
|
||||||
stage("Quality Gate"){
|
stage('postbuild'){
|
||||||
timeout(time: 35, unit: 'MINUTES') {
|
|
||||||
def qg = waitForQualityGate()
|
|
||||||
if (qg.status != 'OK') {
|
|
||||||
error "Pipeline aborted due to quality gate failure: ${qg.status}"
|
|
||||||
}
|
|
||||||
stage('postbuild'){
|
|
||||||
junit '**/target/surefire-reports/*.xml'
|
junit '**/target/surefire-reports/*.xml'
|
||||||
archiveArtifacts 'target/*.jar'
|
archiveArtifacts 'target/*.jar'
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue