mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Jenkinsfile: aarch64: split into stages, add "print info" unit-tests
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
86e0c5a0d4
commit
58d57c76b5
1 changed files with 51 additions and 14 deletions
65
Jenkinsfile
vendored
65
Jenkinsfile
vendored
|
@ -767,20 +767,53 @@ pipeline {
|
||||||
TEST_SKIP_INTEGRATION_CLI = '1'
|
TEST_SKIP_INTEGRATION_CLI = '1'
|
||||||
}
|
}
|
||||||
|
|
||||||
steps {
|
stages {
|
||||||
sh '''
|
stage("Print info") {
|
||||||
docker run --rm -t --privileged \
|
steps {
|
||||||
-v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \
|
sh 'docker version'
|
||||||
--name docker-pr$BUILD_NUMBER \
|
sh 'docker info'
|
||||||
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
|
sh '''
|
||||||
-e DOCKER_GRAPHDRIVER \
|
echo "check-config.sh version: ${CHECK_CONFIG_COMMIT}"
|
||||||
-e TEST_SKIP_INTEGRATION_CLI \
|
curl -fsSL -o ${WORKSPACE}/check-config.sh "https://raw.githubusercontent.com/moby/moby/${CHECK_CONFIG_COMMIT}/contrib/check-config.sh" \
|
||||||
docker:${GIT_COMMIT} \
|
&& bash ${WORKSPACE}/check-config.sh || true
|
||||||
hack/make.sh \
|
'''
|
||||||
binary-daemon \
|
}
|
||||||
dynbinary \
|
}
|
||||||
test-integration
|
stage("Build dev image") {
|
||||||
'''
|
steps {
|
||||||
|
sh 'docker build --force-rm --build-arg APT_MIRROR -t docker:${GIT_COMMIT} -f Dockerfile .'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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 \
|
||||||
|
-v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \
|
||||||
|
--name docker-pr$BUILD_NUMBER \
|
||||||
|
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
|
||||||
|
-e DOCKER_GRAPHDRIVER \
|
||||||
|
-e TEST_SKIP_INTEGRATION_CLI \
|
||||||
|
docker:${GIT_COMMIT} \
|
||||||
|
hack/make.sh \
|
||||||
|
binary-daemon \
|
||||||
|
dynbinary \
|
||||||
|
test-integration
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
|
@ -801,6 +834,10 @@ pipeline {
|
||||||
|
|
||||||
archiveArtifacts artifacts: 'aarch64-bundles.tar.gz'
|
archiveArtifacts artifacts: 'aarch64-bundles.tar.gz'
|
||||||
}
|
}
|
||||||
|
cleanup {
|
||||||
|
sh 'make clean'
|
||||||
|
deleteDir()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('win-RS1') {
|
stage('win-RS1') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue