mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +00:00
simplified pipeline stages
This commit is contained in:
parent
61be4c6725
commit
067be1874d
1 changed files with 9 additions and 2 deletions
|
@ -15,7 +15,7 @@ pipeline {
|
||||||
sh 'mvn clean install'
|
sh 'mvn clean install'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build container') {
|
stage('Build') {
|
||||||
agent any
|
agent any
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
@ -29,7 +29,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy container') {
|
stage('Deploy to Dev') {
|
||||||
agent any
|
agent any
|
||||||
steps {
|
steps {
|
||||||
sh 'docker rm -f petclinic-tomcat-temp || true'
|
sh 'docker rm -f petclinic-tomcat-temp || true'
|
||||||
|
@ -43,5 +43,12 @@ pipeline {
|
||||||
sh 'sleep 4'
|
sh 'sleep 4'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Another stage') {
|
||||||
|
agent any
|
||||||
|
steps {
|
||||||
|
//sample dummy step
|
||||||
|
sh 'sleep 4'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue