mirror of https://github.com/docker/docs.git
update Jenkinsfile
This commit is contained in:
parent
3064785bea
commit
c69a30ac0a
|
|
@ -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 {
|
|||
// """
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue