mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Confirm load balancer toggle
This commit is contained in:
parent
13607d2edc
commit
2b879e9179
3 changed files with 9 additions and 8 deletions
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
|
@ -155,9 +155,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Blue/Green Prod Deploy') {
|
stage('Blue/Green Prod Deploy') {
|
||||||
when {
|
/*when {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}
|
}*/
|
||||||
agent {
|
agent {
|
||||||
dockerfile {
|
dockerfile {
|
||||||
filename "blue-green/Dockerfile"
|
filename "blue-green/Dockerfile"
|
||||||
|
@ -176,9 +176,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Blue/Green Prod Regression Test') {
|
stage('Blue/Green Prod Regression Test') {
|
||||||
when {
|
/*when {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}
|
}*/
|
||||||
agent {
|
agent {
|
||||||
dockerfile {
|
dockerfile {
|
||||||
filename "blue-green/Dockerfile"
|
filename "blue-green/Dockerfile"
|
||||||
|
@ -197,15 +197,16 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Blue/Green Prod Toggle Load Balancer') {
|
stage('Blue/Green Prod Toggle Load Balancer') {
|
||||||
when {
|
/*when {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}
|
}*/
|
||||||
agent {
|
agent {
|
||||||
dockerfile {
|
dockerfile {
|
||||||
filename "blue-green/Dockerfile"
|
filename "blue-green/Dockerfile"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
input "Toggle Prod Load Balancer?"
|
||||||
withCredentials([
|
withCredentials([
|
||||||
usernamePassword(credentialsId: 'aws', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY'),
|
usernamePassword(credentialsId: 'aws', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY'),
|
||||||
file(credentialsId: 'petclinic-deploy-key', variable: 'DEPLOY_KEY_PATH')
|
file(credentialsId: 'petclinic-deploy-key', variable: 'DEPLOY_KEY_PATH')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -e
|
||||||
|
|
||||||
# This script executes a blue/green deployment on the petclinic
|
# This script executes a blue/green deployment on the petclinic
|
||||||
# production infrastructure.
|
# production infrastructure.
|
||||||
|
|
|
@ -12,7 +12,7 @@ input[type="text"] {
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar .nav > li > a {
|
.navbar .nav > li > a {
|
||||||
color: #000000
|
color: #FF0000
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-horizontal .control-label {
|
.form-horizontal .control-label {
|
||||||
|
|
Loading…
Reference in a new issue