1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Jenkinsfile: extract DOCKER_GRAPHDRIVER as environment variable

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 781e79d1fa)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-03 17:10:51 +02:00
parent 8dbb761fad
commit 04ca2e6b92
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

13
Jenkinsfile vendored
View file

@ -18,6 +18,7 @@ pipeline {
} }
environment { environment {
DOCKER_BUILDKIT = '1' DOCKER_BUILDKIT = '1'
DOCKER_GRAPHDRIVER = 'overlay2'
APT_MIRROR = 'cdn-fastly.deb.debian.org' APT_MIRROR = 'cdn-fastly.deb.debian.org'
CHECK_CONFIG_COMMIT = '78405559cfe5987174aa2cb6463b9b2c1b917255' CHECK_CONFIG_COMMIT = '78405559cfe5987174aa2cb6463b9b2c1b917255'
} }
@ -56,7 +57,7 @@ pipeline {
-v "$WORKSPACE/.git:/go/src/github.com/docker/docker/.git" \ -v "$WORKSPACE/.git:/go/src/github.com/docker/docker/.git" \
--name docker-pr$BUILD_NUMBER \ --name docker-pr$BUILD_NUMBER \
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \ -e DOCKER_GITCOMMIT=${GIT_COMMIT} \
-e DOCKER_GRAPHDRIVER=overlay2 \ -e DOCKER_GRAPHDRIVER \
docker:${GIT_COMMIT} \ docker:${GIT_COMMIT} \
hack/test/unit hack/test/unit
''' '''
@ -69,7 +70,7 @@ pipeline {
-v "$WORKSPACE/.git:/go/src/github.com/docker/docker/.git" \ -v "$WORKSPACE/.git:/go/src/github.com/docker/docker/.git" \
--name docker-pr$BUILD_NUMBER \ --name docker-pr$BUILD_NUMBER \
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \ -e DOCKER_GITCOMMIT=${GIT_COMMIT} \
-e DOCKER_GRAPHDRIVER=overlay2 \ -e DOCKER_GRAPHDRIVER \
-e TIMEOUT=120m \ -e TIMEOUT=120m \
docker:${GIT_COMMIT} \ docker:${GIT_COMMIT} \
hack/validate/vendor hack/validate/vendor
@ -141,7 +142,7 @@ pipeline {
-v "$WORKSPACE/.git:/go/src/github.com/docker/docker/.git" \ -v "$WORKSPACE/.git:/go/src/github.com/docker/docker/.git" \
--name docker-pr$BUILD_NUMBER \ --name docker-pr$BUILD_NUMBER \
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \ -e DOCKER_GITCOMMIT=${GIT_COMMIT} \
-e DOCKER_GRAPHDRIVER=overlay2 \ -e DOCKER_GRAPHDRIVER \
-e GIT_SHA1=${GIT_COMMIT} \ -e GIT_SHA1=${GIT_COMMIT} \
docker:${GIT_COMMIT} \ docker:${GIT_COMMIT} \
hack/ci/janky hack/ci/janky
@ -215,7 +216,7 @@ pipeline {
-e DOCKER_EXPERIMENTAL=y \ -e DOCKER_EXPERIMENTAL=y \
--name docker-pr$BUILD_NUMBER \ --name docker-pr$BUILD_NUMBER \
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \ -e DOCKER_GITCOMMIT=${GIT_COMMIT} \
-e DOCKER_GRAPHDRIVER=overlay2 \ -e DOCKER_GRAPHDRIVER \
docker:${GIT_COMMIT}-exp \ docker:${GIT_COMMIT}-exp \
hack/ci/experimental hack/ci/experimental
''' '''
@ -282,7 +283,7 @@ pipeline {
docker run --rm -t --privileged \ docker run --rm -t --privileged \
-v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \ -v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \
--name docker-pr$BUILD_NUMBER \ --name docker-pr$BUILD_NUMBER \
-e DOCKER_GRAPHDRIVER=overlay2 \ -e DOCKER_GRAPHDRIVER \
-e TIMEOUT="300m" \ -e TIMEOUT="300m" \
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \ -e DOCKER_GITCOMMIT=${GIT_COMMIT} \
docker:${GIT_COMMIT} \ docker:${GIT_COMMIT} \
@ -349,7 +350,7 @@ pipeline {
docker run --rm -t --privileged \ docker run --rm -t --privileged \
-v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \ -v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \
--name docker-pr$BUILD_NUMBER \ --name docker-pr$BUILD_NUMBER \
-e DOCKER_GRAPHDRIVER=overlay2 \ -e DOCKER_GRAPHDRIVER \
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \ -e DOCKER_GITCOMMIT=${GIT_COMMIT} \
-e TIMEOUT="180m" \ -e TIMEOUT="180m" \
docker:${GIT_COMMIT} \ docker:${GIT_COMMIT} \