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

Jenkinsfile: inline janky steps, and move validate to separate stage

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

22
Jenkinsfile vendored
View file

@ -49,6 +49,20 @@ pipeline {
sh 'docker build --force-rm --build-arg APT_MIRROR -t docker:${GIT_COMMIT} .' sh 'docker build --force-rm --build-arg APT_MIRROR -t docker:${GIT_COMMIT} .'
} }
} }
stage("Validate") {
steps {
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 \
docker:${GIT_COMMIT} \
hack/validate/default
'''
}
}
stage("Unit tests") { stage("Unit tests") {
steps { steps {
sh ''' sh '''
@ -151,7 +165,13 @@ pipeline {
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \ -e DOCKER_GITCOMMIT=${GIT_COMMIT} \
-e DOCKER_GRAPHDRIVER \ -e DOCKER_GRAPHDRIVER \
docker:${GIT_COMMIT} \ docker:${GIT_COMMIT} \
hack/ci/janky hack/make.sh \
binary-daemon \
dynbinary-daemon \
test-docker-py \
test-integration-flaky \
test-integration \
cross
''' '''
} }
} }