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:
parent
47ac8a97de
commit
f411be2072
1 changed files with 21 additions and 1 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -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
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue