Jenkinsfile: remove .git mount in stages that don't use it

The .git mount is only needed for the DCO check, and for building
the binaries if `DOCKER_GITCOMMIT` is not set.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-03 19:15:04 +02:00
parent f814e04652
commit 47ac8a97de
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

1
Jenkinsfile vendored
View file

@ -54,7 +54,6 @@ pipeline {
sh '''
docker run --rm -t --privileged \
-v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \
-v "$WORKSPACE/.git:/go/src/github.com/docker/docker/.git" \
--name docker-pr$BUILD_NUMBER \
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
-e DOCKER_GRAPHDRIVER \