2019-07-31 00:07:30 +00:00
|
|
|
#!groovy
|
2019-01-10 20:08:10 +00:00
|
|
|
pipeline {
|
2019-08-02 15:34:38 +00:00
|
|
|
agent none
|
2019-07-22 21:19:35 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
options {
|
|
|
|
buildDiscarder(logRotator(daysToKeepStr: '30'))
|
|
|
|
timeout(time: 3, unit: 'HOURS')
|
|
|
|
timestamps()
|
|
|
|
}
|
|
|
|
parameters {
|
2019-08-03 14:46:20 +00:00
|
|
|
booleanParam(name: 'unit_validate', defaultValue: true, description: 'x86 unit tests and vendor check')
|
2019-01-10 20:08:10 +00:00
|
|
|
booleanParam(name: 'janky', defaultValue: true, description: 'x86 Build/Test')
|
|
|
|
booleanParam(name: 'experimental', defaultValue: true, description: 'x86 Experimental Build/Test ')
|
|
|
|
booleanParam(name: 'z', defaultValue: true, description: 'IBM Z (s390x) Build/Test')
|
|
|
|
booleanParam(name: 'powerpc', defaultValue: true, description: 'PowerPC (ppc64le) Build/Test')
|
2019-07-22 21:19:35 +00:00
|
|
|
booleanParam(name: 'windowsRS1', defaultValue: false, description: 'Windows 2016 (RS1) Build/Test')
|
|
|
|
booleanParam(name: 'windowsRS5', defaultValue: false, description: 'Windows 2019 (RS5) Build/Test')
|
2019-08-02 15:34:38 +00:00
|
|
|
}
|
2019-08-02 15:49:51 +00:00
|
|
|
environment {
|
2019-08-03 14:58:46 +00:00
|
|
|
DOCKER_BUILDKIT = '1'
|
|
|
|
APT_MIRROR = 'cdn-fastly.deb.debian.org'
|
|
|
|
CHECK_CONFIG_COMMIT = '78405559cfe5987174aa2cb6463b9b2c1b917255'
|
2019-08-02 15:49:51 +00:00
|
|
|
}
|
2019-08-02 15:34:38 +00:00
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
parallel {
|
2019-08-03 14:46:20 +00:00
|
|
|
stage('unit-validate') {
|
2019-08-02 15:34:38 +00:00
|
|
|
when {
|
|
|
|
beforeAgent true
|
2019-08-03 14:46:20 +00:00
|
|
|
expression { params.unit_validate }
|
2019-08-02 15:34:38 +00:00
|
|
|
}
|
|
|
|
agent { label 'amd64 && ubuntu-1804 && overlay2' }
|
2019-01-10 20:08:10 +00:00
|
|
|
|
2019-08-02 16:37:58 +00:00
|
|
|
stages {
|
2019-08-02 18:20:22 +00:00
|
|
|
stage("Print info") {
|
|
|
|
steps {
|
|
|
|
sh 'docker version'
|
|
|
|
sh 'docker info'
|
2019-08-03 14:58:46 +00:00
|
|
|
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
|
|
|
|
'''
|
2019-08-02 18:20:22 +00:00
|
|
|
}
|
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
stage("Build dev image") {
|
|
|
|
steps {
|
2019-08-03 14:50:49 +00:00
|
|
|
sh 'docker build --force-rm --build-arg APT_MIRROR -t docker:${GIT_COMMIT} .'
|
2019-08-02 16:37:58 +00:00
|
|
|
}
|
|
|
|
}
|
2019-08-03 14:46:20 +00:00
|
|
|
stage("Unit tests") {
|
2019-08-02 16:37:58 +00:00
|
|
|
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 \
|
2019-08-03 14:13:39 +00:00
|
|
|
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
|
2019-08-02 16:37:58 +00:00
|
|
|
-e DOCKER_GRAPHDRIVER=overlay2 \
|
2019-08-03 14:13:39 +00:00
|
|
|
docker:${GIT_COMMIT} \
|
2019-08-02 16:37:58 +00:00
|
|
|
hack/test/unit
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
2019-08-03 14:46:20 +00:00
|
|
|
stage("Validate vendor") {
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
docker run --rm -t --privileged \
|
|
|
|
-v "$WORKSPACE/.git:/go/src/github.com/docker/docker/.git" \
|
2019-08-03 18:05:12 +00:00
|
|
|
--name docker-pr$BUILD_NUMBER \
|
2019-08-03 14:46:20 +00:00
|
|
|
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
|
|
|
|
-e DOCKER_GRAPHDRIVER=overlay2 \
|
|
|
|
-e TIMEOUT=120m \
|
|
|
|
docker:${GIT_COMMIT} \
|
|
|
|
hack/validate/vendor
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 15:34:38 +00:00
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
junit 'bundles/junit-report.xml'
|
|
|
|
sh '''
|
|
|
|
echo 'Ensuring container killed.'
|
|
|
|
docker rm -vf docker-pr$BUILD_NUMBER || true
|
2019-08-02 16:51:51 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
sh '''
|
2019-08-02 15:34:38 +00:00
|
|
|
echo 'Chowning /workspace to jenkins user'
|
|
|
|
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
2019-08-02 16:37:58 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
sh '''
|
2019-08-02 15:34:38 +00:00
|
|
|
echo 'Creating unit-bundles.tar.gz'
|
|
|
|
tar -czvf unit-bundles.tar.gz bundles/junit-report.xml bundles/go-test-report.json bundles/profile.out
|
|
|
|
'''
|
2019-08-02 16:41:50 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
archiveArtifacts artifacts: 'unit-bundles.tar.gz'
|
2019-08-02 16:41:50 +00:00
|
|
|
}
|
|
|
|
cleanup {
|
|
|
|
sh 'make clean'
|
2019-08-02 15:34:38 +00:00
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('janky') {
|
|
|
|
when {
|
|
|
|
beforeAgent true
|
|
|
|
expression { params.janky }
|
|
|
|
}
|
|
|
|
agent { label 'amd64 && ubuntu-1804 && overlay2' }
|
2019-01-10 20:08:10 +00:00
|
|
|
|
2019-08-02 16:37:58 +00:00
|
|
|
stages {
|
2019-08-02 18:20:22 +00:00
|
|
|
stage("Print info") {
|
|
|
|
steps {
|
|
|
|
sh 'docker version'
|
|
|
|
sh 'docker info'
|
2019-08-03 14:58:46 +00:00
|
|
|
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
|
|
|
|
'''
|
2019-08-02 18:20:22 +00:00
|
|
|
}
|
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
stage("Build dev image") {
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
# todo: include ip_vs in base image
|
|
|
|
sudo modprobe ip_vs
|
|
|
|
|
2019-08-03 14:13:39 +00:00
|
|
|
docker build --force-rm --build-arg APT_MIRROR -t docker:${GIT_COMMIT} .
|
2019-08-02 16:37:58 +00:00
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Run tests") {
|
|
|
|
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 \
|
2019-08-03 14:13:39 +00:00
|
|
|
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
|
2019-08-02 16:37:58 +00:00
|
|
|
-e DOCKER_GRAPHDRIVER=overlay2 \
|
|
|
|
-e GIT_SHA1=${GIT_COMMIT} \
|
2019-08-03 14:13:39 +00:00
|
|
|
docker:${GIT_COMMIT} \
|
2019-08-02 16:37:58 +00:00
|
|
|
hack/ci/janky
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Build e2e image") {
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
echo "Building e2e image"
|
2019-08-03 14:13:39 +00:00
|
|
|
docker build --build-arg DOCKER_GITCOMMIT=${GIT_COMMIT} -t moby-e2e-test -f Dockerfile.e2e .
|
2019-08-02 16:37:58 +00:00
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 15:34:38 +00:00
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh '''
|
|
|
|
echo "Ensuring container killed."
|
|
|
|
docker rm -vf docker-pr$BUILD_NUMBER || true
|
2019-08-02 16:51:51 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
sh '''
|
2019-08-02 15:34:38 +00:00
|
|
|
echo "Chowning /workspace to jenkins user"
|
|
|
|
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
|
|
|
'''
|
2019-08-02 16:37:58 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
sh '''
|
|
|
|
echo "Creating janky-bundles.tar.gz"
|
|
|
|
(find bundles -name '*.log' -o -name '*.prof' -o -name integration.test | xargs tar -czf janky-bundles.tar.gz) || true
|
|
|
|
'''
|
2019-08-02 16:41:50 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
archiveArtifacts artifacts: 'janky-bundles.tar.gz'
|
2019-08-02 16:41:50 +00:00
|
|
|
}
|
|
|
|
cleanup {
|
|
|
|
sh 'make clean'
|
2019-08-02 15:34:38 +00:00
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('experimental') {
|
|
|
|
when {
|
|
|
|
beforeAgent true
|
|
|
|
expression { params.experimental }
|
|
|
|
}
|
|
|
|
agent { label 'amd64 && ubuntu-1804 && overlay2' }
|
2019-08-02 16:37:58 +00:00
|
|
|
|
|
|
|
stages {
|
2019-08-02 18:20:22 +00:00
|
|
|
stage("Print info") {
|
|
|
|
steps {
|
|
|
|
sh 'docker version'
|
|
|
|
sh 'docker info'
|
2019-08-03 14:58:46 +00:00
|
|
|
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
|
|
|
|
'''
|
2019-08-02 18:20:22 +00:00
|
|
|
}
|
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
stage("Build dev image") {
|
|
|
|
steps {
|
2019-08-03 14:13:39 +00:00
|
|
|
sh 'docker build --force-rm --build-arg APT_MIRROR -t docker:${GIT_COMMIT}-exp .'
|
2019-08-02 16:37:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Run tests") {
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
docker run --rm -t --privileged \
|
|
|
|
-v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \
|
|
|
|
-e DOCKER_EXPERIMENTAL=y \
|
2019-08-03 18:05:12 +00:00
|
|
|
--name docker-pr$BUILD_NUMBER \
|
2019-08-03 14:13:39 +00:00
|
|
|
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
|
2019-08-02 16:37:58 +00:00
|
|
|
-e DOCKER_GRAPHDRIVER=overlay2 \
|
2019-08-03 14:13:39 +00:00
|
|
|
docker:${GIT_COMMIT}-exp \
|
2019-08-02 16:37:58 +00:00
|
|
|
hack/ci/experimental
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 15:34:38 +00:00
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh '''
|
|
|
|
echo "Ensuring container killed."
|
2019-08-03 18:05:12 +00:00
|
|
|
docker rm -vf docker-pr$BUILD_NUMBER || true
|
2019-08-02 16:51:51 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
sh '''
|
2019-08-02 15:34:38 +00:00
|
|
|
echo "Chowning /workspace to jenkins user"
|
|
|
|
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
|
|
|
'''
|
2019-08-02 16:37:58 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
sh '''
|
|
|
|
echo "Creating bundles.tar.gz"
|
|
|
|
(find bundles -name '*.log' -o -name '*.prof' -o -name integration.test | xargs tar -czf experimental-bundles.tar.gz) || true
|
|
|
|
'''
|
2019-08-02 16:37:58 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
archiveArtifacts artifacts: 'experimental-bundles.tar.gz'
|
2019-08-02 16:41:50 +00:00
|
|
|
}
|
|
|
|
cleanup {
|
|
|
|
sh 'make clean'
|
2019-08-02 15:34:38 +00:00
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('z') {
|
|
|
|
when {
|
|
|
|
beforeAgent true
|
|
|
|
expression { params.z }
|
|
|
|
}
|
|
|
|
agent { label 's390x-ubuntu-1604' }
|
2019-08-02 18:31:38 +00:00
|
|
|
// s390x machines run on Docker 18.06, and buildkit has some bugs on that version
|
|
|
|
environment { DOCKER_BUILDKIT = '0' }
|
2019-08-02 16:37:58 +00:00
|
|
|
|
|
|
|
stages {
|
2019-08-02 18:20:22 +00:00
|
|
|
stage("Print info") {
|
|
|
|
steps {
|
|
|
|
sh 'docker version'
|
|
|
|
sh 'docker info'
|
2019-08-03 14:58:46 +00:00
|
|
|
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
|
|
|
|
'''
|
2019-08-02 18:20:22 +00:00
|
|
|
}
|
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
stage("Build dev image") {
|
|
|
|
steps {
|
|
|
|
sh '''
|
2019-08-03 14:13:39 +00:00
|
|
|
docker build --force-rm --build-arg APT_MIRROR -t docker:${GIT_COMMIT} -f Dockerfile .
|
2019-08-02 16:37:58 +00:00
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Run tests") {
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
docker run --rm -t --privileged \
|
|
|
|
-v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \
|
2019-08-02 16:47:23 +00:00
|
|
|
--name docker-pr$BUILD_NUMBER \
|
2019-08-03 15:09:27 +00:00
|
|
|
-e DOCKER_GRAPHDRIVER=overlay2 \
|
2019-08-02 16:37:58 +00:00
|
|
|
-e TIMEOUT="300m" \
|
2019-08-03 14:13:39 +00:00
|
|
|
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
|
|
|
|
docker:${GIT_COMMIT} \
|
2019-08-02 16:37:58 +00:00
|
|
|
hack/ci/z
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 15:34:38 +00:00
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh '''
|
|
|
|
echo "Ensuring container killed."
|
2019-08-03 18:05:12 +00:00
|
|
|
docker rm -vf docker-pr$BUILD_NUMBER || true
|
2019-08-02 16:51:51 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
sh '''
|
2019-08-02 15:34:38 +00:00
|
|
|
echo "Chowning /workspace to jenkins user"
|
2019-08-02 16:49:33 +00:00
|
|
|
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
2019-08-02 15:34:38 +00:00
|
|
|
'''
|
2019-08-02 16:37:58 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
sh '''
|
|
|
|
echo "Creating bundles.tar.gz"
|
|
|
|
find bundles -name '*.log' | xargs tar -czf s390x-bundles.tar.gz
|
|
|
|
'''
|
2019-08-02 16:41:50 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
archiveArtifacts artifacts: 's390x-bundles.tar.gz'
|
2019-08-02 16:41:50 +00:00
|
|
|
}
|
|
|
|
cleanup {
|
|
|
|
sh 'make clean'
|
2019-08-02 15:34:38 +00:00
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('powerpc') {
|
|
|
|
when {
|
|
|
|
beforeAgent true
|
|
|
|
expression { params.powerpc }
|
|
|
|
}
|
|
|
|
agent { label 'ppc64le-ubuntu-1604' }
|
2019-08-02 18:31:38 +00:00
|
|
|
// power machines run on Docker 18.06, and buildkit has some bugs on that version
|
|
|
|
environment { DOCKER_BUILDKIT = '0' }
|
2019-08-02 16:37:58 +00:00
|
|
|
|
|
|
|
stages {
|
2019-08-02 18:20:22 +00:00
|
|
|
stage("Print info") {
|
|
|
|
steps {
|
|
|
|
sh 'docker version'
|
|
|
|
sh 'docker info'
|
2019-08-03 14:58:46 +00:00
|
|
|
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
|
|
|
|
'''
|
2019-08-02 18:20:22 +00:00
|
|
|
}
|
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
stage("Build dev image") {
|
|
|
|
steps {
|
2019-08-03 14:13:39 +00:00
|
|
|
sh 'docker build --force-rm --build-arg APT_MIRROR -t docker:${GIT_COMMIT} -f Dockerfile .'
|
2019-08-02 16:37:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Run tests") {
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
docker run --rm -t --privileged \
|
|
|
|
-v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \
|
2019-08-02 16:47:23 +00:00
|
|
|
--name docker-pr$BUILD_NUMBER \
|
2019-08-03 15:09:27 +00:00
|
|
|
-e DOCKER_GRAPHDRIVER=overlay2 \
|
2019-08-03 14:13:39 +00:00
|
|
|
-e DOCKER_GITCOMMIT=${GIT_COMMIT} \
|
2019-08-02 16:37:58 +00:00
|
|
|
-e TIMEOUT="180m" \
|
2019-08-03 14:13:39 +00:00
|
|
|
docker:${GIT_COMMIT} \
|
2019-08-02 16:37:58 +00:00
|
|
|
hack/ci/powerpc
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 15:34:38 +00:00
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh '''
|
|
|
|
echo "Ensuring container killed."
|
2019-08-02 16:47:23 +00:00
|
|
|
docker rm -vf docker-pr$BUILD_NUMBER || true
|
2019-08-02 16:51:51 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
sh '''
|
2019-08-02 15:34:38 +00:00
|
|
|
echo "Chowning /workspace to jenkins user"
|
2019-08-02 16:49:33 +00:00
|
|
|
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
2019-08-02 15:34:38 +00:00
|
|
|
'''
|
2019-08-02 16:37:58 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
sh '''
|
|
|
|
echo "Creating bundles.tar.gz"
|
|
|
|
find bundles -name '*.log' | xargs tar -czf powerpc-bundles.tar.gz
|
|
|
|
'''
|
2019-08-02 16:41:50 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
archiveArtifacts artifacts: 'powerpc-bundles.tar.gz'
|
2019-08-02 16:41:50 +00:00
|
|
|
}
|
|
|
|
cleanup {
|
|
|
|
sh 'make clean'
|
2019-08-02 15:34:38 +00:00
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('windowsRS1') {
|
|
|
|
when {
|
|
|
|
beforeAgent true
|
|
|
|
expression { params.windowsRS1 }
|
|
|
|
}
|
|
|
|
agent {
|
|
|
|
node {
|
|
|
|
label 'windows-rs1'
|
|
|
|
customWorkspace 'c:\\gopath\\src\\github.com\\docker\\docker'
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
stages {
|
2019-08-02 18:20:22 +00:00
|
|
|
stage("Print info") {
|
|
|
|
steps {
|
|
|
|
sh 'docker version'
|
|
|
|
sh 'docker info'
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
stage("Run tests") {
|
|
|
|
steps {
|
|
|
|
powershell '''
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
.\\hack\\ci\\windows.ps1
|
|
|
|
exit $LastExitCode
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 15:34:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('windowsRS5-process') {
|
|
|
|
when {
|
|
|
|
beforeAgent true
|
|
|
|
expression { params.windowsRS5 }
|
|
|
|
}
|
|
|
|
agent {
|
|
|
|
node {
|
|
|
|
label 'windows-rs5'
|
|
|
|
customWorkspace 'c:\\gopath\\src\\github.com\\docker\\docker'
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
stages {
|
2019-08-02 18:20:22 +00:00
|
|
|
stage("Print info") {
|
|
|
|
steps {
|
|
|
|
sh 'docker version'
|
|
|
|
sh 'docker info'
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 16:37:58 +00:00
|
|
|
stage("Run tests") {
|
|
|
|
steps {
|
|
|
|
powershell '''
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
.\\hack\\ci\\windows.ps1
|
|
|
|
exit $LastExitCode
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 15:34:38 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-10 20:08:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-25 01:25:16 +00:00
|
|
|
}
|