LDOP-302 Removed deploy-prod, fixed regression test URLs.

This commit is contained in:
Chad Duffin 2017-09-20 12:53:03 -07:00
parent 6df3f03097
commit fc1d921203

View file

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