mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +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
|
@ -85,7 +85,7 @@ pipeline {
|
|||
stage('Push to dockerhub') {
|
||||
agent any
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'dockerhub', passwordVariable: 'dockerPassword', usernameVariable: 'dockerUsername')]){
|
||||
withCredentials([usernamePassword(credentialsId: 'dockerhub', passwordVariable: 'dockerPassword', usernameVariable: 'dockerUsername')]) {
|
||||
script {
|
||||
sh "docker login -u ${env.dockerUsername} -p ${env.dockerPassword}"
|
||||
if ( env.BRANCH_NAME == 'master' ) {
|
||||
|
@ -119,8 +119,8 @@ pipeline {
|
|||
}
|
||||
}
|
||||
steps {
|
||||
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"
|
||||
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"
|
||||
}
|
||||
}
|
||||
stage('Deploy to qa') {
|
||||
|
@ -143,33 +143,9 @@ pipeline {
|
|||
}
|
||||
}
|
||||
steps {
|
||||
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"
|
||||
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"
|
||||
}
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue