mirror of https://github.com/docker/docs.git
update Jenkinsfile
This commit is contained in:
parent
6476d5963a
commit
493b5e1e9e
|
|
@ -17,12 +17,11 @@ pipeline {
|
||||||
expression { env.GIT_URL == 'https://github.com/docker/docs-private.git' }
|
expression { env.GIT_URL == 'https://github.com/docker/docs-private.git' }
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage( 'build and push new beta-stage image' ) {
|
stage( 'build and push new beta stage image' ) {
|
||||||
when {
|
when {
|
||||||
branch 'amberjack'
|
branch 'amberjack'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
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} . && \
|
||||||
|
|
@ -36,7 +35,6 @@ pipeline {
|
||||||
branch 'published'
|
branch 'published'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
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} . && \
|
||||||
|
|
@ -45,12 +43,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage( 'update beta-stage service' ) {
|
stage( 'update beta stage service' ) {
|
||||||
when {
|
when {
|
||||||
branch 'amberjack'
|
branch 'amberjack'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'echo "Update beta-stage service here"'
|
|
||||||
withVpn(dtrVpnAddress) {
|
withVpn(dtrVpnAddress) {
|
||||||
withCredentials(ucpBundle) {
|
withCredentials(ucpBundle) {
|
||||||
sh 'unzip -o $UCP'
|
sh 'unzip -o $UCP'
|
||||||
|
|
@ -72,7 +69,6 @@ pipeline {
|
||||||
branch 'published'
|
branch 'published'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'echo "Update beta service here"'
|
|
||||||
withVpn(dtrVpnAddress) {
|
withVpn(dtrVpnAddress) {
|
||||||
withCredentials(ucpBundle) {
|
withCredentials(ucpBundle) {
|
||||||
sh 'unzip -o $UCP'
|
sh 'unzip -o $UCP'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue