mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
added docker stage
This commit is contained in:
parent
1fef4c921e
commit
c9a56dc129
1 changed files with 6 additions and 0 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -21,6 +21,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('SonarQube Analysis') {
|
stage('SonarQube Analysis') {
|
||||||
|
when {
|
||||||
|
branch 'Release'
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
// Run Maven with SonarQube plugin for analysis
|
// Run Maven with SonarQube plugin for analysis
|
||||||
|
@ -37,6 +40,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage("Quality Gate") {
|
stage("Quality Gate") {
|
||||||
|
when {
|
||||||
|
branch 'Release'
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
timeout(time: 1, unit: 'HOURS') {
|
timeout(time: 1, unit: 'HOURS') {
|
||||||
script {
|
script {
|
||||||
|
|
Loading…
Reference in a new issue