mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 09:05:50 +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') {
|
stage('SonarQube analysis') {
|
||||||
|
agent any
|
||||||
|
steps {
|
||||||
withSonarQubeEnv('SonarQube Scanner 3.0.3.778') {
|
withSonarQubeEnv('SonarQube Scanner 3.0.3.778') {
|
||||||
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar ' +
|
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar ' +
|
||||||
'-f pom.xml ' +
|
'-f pom.xml ' +
|
||||||
|
@ -30,8 +32,10 @@ pipeline {
|
||||||
'-Dsonar.exclusions=**/*Test*/**'
|
'-Dsonar.exclusions=**/*Test*/**'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage("SonarQube Quality Gate") {
|
stage("SonarQube Quality Gate") {
|
||||||
|
steps {
|
||||||
timeout(time: 1, unit: 'HOURS') {
|
timeout(time: 1, unit: 'HOURS') {
|
||||||
def qg = waitForQualityGate()
|
def qg = waitForQualityGate()
|
||||||
if (qg.status != 'OK') {
|
if (qg.status != 'OK') {
|
||||||
|
@ -39,6 +43,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Approve for QA') {
|
stage('Approve for QA') {
|
||||||
agent any
|
agent any
|
||||||
|
|
Loading…
Reference in a new issue