mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25:50 +00:00
added smoke-suite to container
This commit is contained in:
parent
38ce5cd740
commit
2bc6a2a161
1 changed files with 25 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue