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