Jenkinsfile: aarch64: split into stages, add "print info" unit-tests
@@ -767,6 +767,37 @@ pipeline {
TEST_SKIP_INTEGRATION_CLI = '1'
}
+ stages {
+ stage("Print info") {
+ steps {
+ sh 'docker version'
+ sh 'docker info'
+ sh '''
+ echo "check-config.sh version: ${CHECK_CONFIG_COMMIT}"
+ curl -fsSL -o ${WORKSPACE}/check-config.sh "https://raw.githubusercontent.com/moby/moby/${CHECK_CONFIG_COMMIT}/contrib/check-config.sh" \
+ && bash ${WORKSPACE}/check-config.sh || true
+ '''
+ }
+ }
+ 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 \
@@ -782,6 +813,8 @@ pipeline {
test-integration
'''
}
+ }
+ }
post {
always {
sh '''
@@ -801,6 +834,10 @@ pipeline {
archiveArtifacts artifacts: 'aarch64-bundles.tar.gz'
}
+ cleanup {
+ sh 'make clean'
+ deleteDir()
+ }
}
}
stage('win-RS1') {
