mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Jenkinsfile: move static and cross compilation to unit-validate stage
Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 251c8dca28
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
5c2e0c6f9b
commit
34a8dcae17
1 changed files with 27 additions and 1 deletions
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
|
@ -80,6 +80,33 @@ pipeline {
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage("Static") {
|
||||||
|
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/make.sh binary-daemon
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage("Cross") {
|
||||||
|
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/make.sh cross
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// needs to be last stage that calls make.sh for the junit report to work
|
||||||
stage("Unit tests") {
|
stage("Unit tests") {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
@ -190,7 +217,6 @@ pipeline {
|
||||||
dynbinary-daemon \
|
dynbinary-daemon \
|
||||||
test-integration-flaky \
|
test-integration-flaky \
|
||||||
test-integration \
|
test-integration \
|
||||||
cross
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue