update Jenkinsfile

This commit is contained in:
Alastair Smith 2019-03-05 17:13:05 -06:00
parent e95d016a01
commit e31204c841
1 changed files with 40 additions and 40 deletions

80
Jenkinsfile vendored
View File

@ -23,12 +23,12 @@ pipeline {
} }
steps { steps {
sh 'echo "Build and push new beta-stage image here"' sh 'echo "Build and push new beta-stage image here"'
// withDockerRegistry(reg) { withDockerRegistry(reg) {
// sh """ sh """
// docker image build --tag docs/docs-private:beta-stage-${env.BUILD_NUMBER} . && \ docker image build --tag docs/docs-private:beta-stage-${env.BUILD_NUMBER} . && \
// docker image push docs/docs-private:beta-stage-${env.BUILD_NUMBER} docker image push docs/docs-private:beta-stage-${env.BUILD_NUMBER}
// """ """
// } }
} }
} }
stage( 'build and push new beta image' ) { stage( 'build and push new beta image' ) {
@ -37,12 +37,12 @@ pipeline {
} }
steps { steps {
sh 'echo "Build and push new beta image here"' sh 'echo "Build and push new beta image here"'
// withDockerRegistry(reg) { withDockerRegistry(reg) {
// sh """ sh """
// docker image build --tag docs/docs-private:beta-${env.BUILD_NUMBER} . && \ docker image build --tag docs/docs-private:beta-${env.BUILD_NUMBER} . && \
// docker image push docs/docs-private:beta-${env.BUILD_NUMBER} docker image push docs/docs-private:beta-${env.BUILD_NUMBER}
// """ """
// } }
} }
} }
stage( 'update beta-stage service' ) { stage( 'update beta-stage service' ) {
@ -51,20 +51,20 @@ pipeline {
} }
steps { steps {
sh 'echo "Update beta-stage service here"' sh 'echo "Update beta-stage service here"'
// withVpn(dtrVpnAddress) { withVpn(dtrVpnAddress) {
// withCredentials(ucpBundle) { withCredentials(ucpBundle) {
// sh 'unzip -o $UCP' sh 'unzip -o $UCP'
// } }
// withDockerRegistry(reg) { withDockerRegistry(reg) {
// sh """ sh """
// export DOCKER_TLS_VERIFY=1 export DOCKER_TLS_VERIFY=1
// export COMPOSE_TLS_VERSION=TLSv1_2 export COMPOSE_TLS_VERSION=TLSv1_2
// export DOCKER_CERT_PATH=${WORKSPACE}/ucp-bundle-success_bot export DOCKER_CERT_PATH=${WORKSPACE}/ucp-bundle-success_bot
// export DOCKER_HOST=tcp://ucp.corp-us-east-1.aws.dckr.io:443 export DOCKER_HOST=tcp://ucp.corp-us-east-1.aws.dckr.io:443
// docker service update --detach=false --force --image docs/docs-private:build-${env.BUILD_NUMBER} docs-beta-docker-com_docs --with-registry-auth docker service update --detach=false --force --image docs/docs-private:beta-stage-${env.BUILD_NUMBER} docs-beta-stage-docker-com_docs --with-registry-auth
// """ """
// } }
// } }
} }
} }
stage( 'update beta service' ) { stage( 'update beta service' ) {
@ -73,20 +73,20 @@ pipeline {
} }
steps { steps {
sh 'echo "Update beta service here"' sh 'echo "Update beta service here"'
// withVpn(dtrVpnAddress) { withVpn(dtrVpnAddress) {
// withCredentials(ucpBundle) { withCredentials(ucpBundle) {
// sh 'unzip -o $UCP' sh 'unzip -o $UCP'
// } }
// withDockerRegistry(reg) { withDockerRegistry(reg) {
// sh """ sh """
// export DOCKER_TLS_VERIFY=1 export DOCKER_TLS_VERIFY=1
// export COMPOSE_TLS_VERSION=TLSv1_2 export COMPOSE_TLS_VERSION=TLSv1_2
// export DOCKER_CERT_PATH=${WORKSPACE}/ucp-bundle-success_bot export DOCKER_CERT_PATH=${WORKSPACE}/ucp-bundle-success_bot
// export DOCKER_HOST=tcp://ucp.corp-us-east-1.aws.dckr.io:443 export DOCKER_HOST=tcp://ucp.corp-us-east-1.aws.dckr.io:443
// docker service update --detach=false --force --image docs/docs-private:build-${env.BUILD_NUMBER} docs-beta-docker-com_docs --with-registry-auth docker service update --detach=false --force --image docs/docs-private:beta-${env.BUILD_NUMBER} docs-beta-docker-com_docs --with-registry-auth
// """ """
// } }
// } }
} }
} }
} }