Confirm load balancer toggle

This commit is contained in:
ebracho 2017-09-25 10:39:12 -07:00
parent 13607d2edc
commit 2b879e9179
3 changed files with 9 additions and 8 deletions

13
Jenkinsfile vendored
View file

@ -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')

View file

@ -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.

View file

@ -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 {