mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
LDOP-302 Removed deploy-prod, fixed regression test URLs.
This commit is contained in:
parent
6df3f03097
commit
fc1d921203
1 changed files with 125 additions and 149 deletions
|
@ -119,8 +119,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh "cd regression-suite && mvn clean -B test -DPETCLINIC_URL=https://dev-petclinic.liatr.io/petclinic"
|
sh "cd regression-suite && mvn clean -B test -DPETCLINIC_URL=https://dev.petclinic.liatr.io/petclinic"
|
||||||
echo "Should be accessible at https://dev-petclinic.liatr.io/petclinic"
|
echo "Should be accessible at https://dev.petclinic.liatr.io/petclinic"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy to qa') {
|
stage('Deploy to qa') {
|
||||||
|
@ -143,32 +143,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh "cd regression-suite && mvn clean -B test -DPETCLINIC_URL=https://qa-petclinic.liatr.io/petclinic"
|
sh "cd regression-suite && mvn clean -B test -DPETCLINIC_URL=https://qa.petclinic.liatr.io/petclinic"
|
||||||
echo "Should be accessible at https://qa-petclinic.liatr.io/petclinic"
|
echo "Should be accessible at https://qa.petclinic.liatr.io/petclinic"
|
||||||
input 'Deploy to Prod?'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deploy to Prod') {
|
|
||||||
when {
|
|
||||||
branch 'master'
|
|
||||||
}
|
|
||||||
agent any
|
|
||||||
steps {
|
|
||||||
deployToEnvironment("ec2-user", "petclinic.liatr.io", "petclinic-deploy-key", "${env.IMAGE}", "${containerVersion}", "prod-petclinic", "petclinic.liatr.io")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Smoke test Prod') {
|
|
||||||
when {
|
|
||||||
branch 'master'
|
|
||||||
}
|
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'maven:3.5.0'
|
|
||||||
args '--network=${LDOP_NETWORK_NAME}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh "cd regression-suite && mvn clean -B test -DPETCLINIC_URL=https://petclinic.liatr.io/petclinic"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue