mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +00:00
Added missing steps.
This commit is contained in:
parent
0aea718e5e
commit
71c6368f96
1 changed files with 24 additions and 19 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -17,6 +17,8 @@ pipeline {
|
|||
}
|
||||
|
||||
stage('SonarQube analysis') {
|
||||
agent any
|
||||
steps {
|
||||
withSonarQubeEnv('SonarQube Scanner 3.0.3.778') {
|
||||
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar ' +
|
||||
'-f pom.xml ' +
|
||||
|
@ -30,8 +32,10 @@ pipeline {
|
|||
'-Dsonar.exclusions=**/*Test*/**'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage("SonarQube Quality Gate") {
|
||||
steps {
|
||||
timeout(time: 1, unit: 'HOURS') {
|
||||
def qg = waitForQualityGate()
|
||||
if (qg.status != 'OK') {
|
||||
|
@ -39,6 +43,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Approve for QA') {
|
||||
agent any
|
||||
|
|
Loading…
Reference in a new issue