added smoke-suite to container

This commit is contained in:
Benjamin Stein 2017-08-29 15:07:21 -07:00
parent 38ce5cd740
commit 2bc6a2a161

View file

@ -24,6 +24,31 @@ pipeline {
}
}
}
stage('Run local Container') {
agent any
steps {
sh 'docker rm -f petclinic-tomcat-temp || true'
sh 'docker run -d --network=bridge --name petclinic-tomcat-temp liatrio/petclinic-tomcat:${env.BRANCH_NAME}'
}
}
stage('Smoke-Test') {
agent {
docker {
image 'maven:3.5.0'
args '--network=bridge'
}
}
steps {
sh "cd regression-suite"
sh "mvn clean -B test -DPETCLINIC_URL=http://petclinic-tomcat:8080/petclinic/"
}
}
stage('Stop local container') {
agent any
steps {
sh 'docker rm -f petclinic-tomcat-temp || true'
}
}
stage('Push to dockerhub') {
agent any
steps {