simplified pipeline stages

This commit is contained in:
matthewpdias 2018-03-07 15:46:05 -08:00
parent 61be4c6725
commit 067be1874d

View file

@ -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'
}
}
} }
} }