Jenkinsfile: inline experimental, power, z steps, and split Unit test

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 1e8ede514e)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-03 19:57:50 +02:00
parent 63966dec02
commit 62af652a5a
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

44
Jenkinsfile vendored
View file

@ -226,7 +226,7 @@ pipeline {
sh 'docker build --force-rm --build-arg APT_MIRROR -t docker:${GIT_COMMIT}-exp .'
}
}
stage("Run tests") {
stage("Integration tests") {
steps {
sh '''
docker run --rm -t --privileged \
@ -236,7 +236,9 @@ pipeline {
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
-e DOCKER_GRAPHDRIVER \
docker:${GIT_COMMIT}-exp \
hack/ci/experimental
hack/make.sh \
binary-daemon \
test-integration
'''
}
}
@ -295,7 +297,20 @@ pipeline {
'''
}
}
stage("Run tests") {
stage("Unit tests") {
steps {
sh '''
docker run --rm -t --privileged \
-v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \
--name docker-pr$BUILD_NUMBER \
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
-e DOCKER_GRAPHDRIVER \
docker:${GIT_COMMIT} \
hack/test/unit
'''
}
}
stage("Integration tests") {
steps {
sh '''
docker run --rm -t --privileged \
@ -305,7 +320,9 @@ pipeline {
-e DOCKER_GRAPHDRIVER \
-e TIMEOUT="300m" \
docker:${GIT_COMMIT} \
hack/ci/z
hack/make.sh \
dynbinary \
test-integration
'''
}
}
@ -362,7 +379,20 @@ pipeline {
sh 'docker build --force-rm --build-arg APT_MIRROR -t docker:${GIT_COMMIT} -f Dockerfile .'
}
}
stage("Run tests") {
stage("Unit tests") {
steps {
sh '''
docker run --rm -t --privileged \
-v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \
--name docker-pr$BUILD_NUMBER \
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
-e DOCKER_GRAPHDRIVER \
docker:${GIT_COMMIT} \
hack/test/unit
'''
}
}
stage("Integration tests") {
steps {
sh '''
docker run --rm -t --privileged \
@ -372,7 +402,9 @@ pipeline {
-e DOCKER_GRAPHDRIVER \
-e TIMEOUT="180m" \
docker:${GIT_COMMIT} \
hack/ci/powerpc
hack/make.sh \
dynbinary \
test-integration
'''
}
}