update Jenkinsfile

This commit is contained in:
Alastair Smith 2019-03-04 12:01:30 -06:00
parent 3064785bea
commit c69a30ac0a
1 changed files with 37 additions and 38 deletions

35
Jenkinsfile vendored
View File

@ -16,28 +16,27 @@ pipeline {
when { when {
expression { env.GIT_URL == 'https://github.com/docker/docs-private.git' } expression { env.GIT_URL == 'https://github.com/docker/docs-private.git' }
} }
steps { stages {
sh 'echo "Success!"' stage( 'build and push image' ) {
when {
branch 'jenkins-test'
} }
// stages { steps {
// stage( 'build and push image' ) { sh 'echo "Would build and push new staging image here"'
// when {
// branch 'master'
// }
// steps {
// withDockerRegistry(reg) { // withDockerRegistry(reg) {
// sh """ // sh """
// docker image build --tag docs/docs-private:build-${env.BUILD_NUMBER} . && \ // docker image build --tag docs/docs-private:build-${env.BUILD_NUMBER} . && \
// docker image push docs/docs-private:build-${env.BUILD_NUMBER} // docker image push docs/docs-private:build-${env.BUILD_NUMBER}
// """ // """
// } // }
// } }
// } }
// stage( 'update service' ) { stage( 'update service' ) {
// when { when {
// branch 'master' branch 'jenkins-test'
// } }
// steps { steps {
sh 'echo "Would update staging service here"'
// withVpn(dtrVpnAddress) { // withVpn(dtrVpnAddress) {
// withCredentials(ucpBundle) { // withCredentials(ucpBundle) {
// sh 'unzip -o $UCP' // sh 'unzip -o $UCP'
@ -52,9 +51,9 @@ pipeline {
// """ // """
// } // }
// } // }
// } }
// } }
// } }
} }
} }
} }