From 74919d056936d351af733ec504dee3f41c978292 Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Tue, 19 May 2020 19:34:42 +0200 Subject: [PATCH] Run e2e tests with different engine version on Jenkins Rewrite Jenkinsfile to new declarative syntax without parallel as the e2e framework is not tailored for than (container name clash, port clash,...) Signed-off-by: Tibor Vass Signed-off-by: Silvin Lubecki --- Jenkinsfile | 66 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e4ea6f000c..ae2d0cbfaa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,25 +1,47 @@ -wrappedNode(label: 'linux && x86_64', cleanWorkspace: true) { - timeout(time: 60, unit: 'MINUTES') { - stage "Git Checkout" - checkout scm +pipeline { + agent { + label "linux && x86_64" + } - stage "Docker info" - sh "docker version" - sh "docker info" + options { + timeout(time: 60, unit: 'MINUTES') + } - stage "e2e (non-experimental)" - sh "E2E_UNIQUE_ID=clie2e${BUILD_NUMBER} \ - IMAGE_TAG=clie2e${BUILD_NUMBER} \ - DOCKER_BUILDKIT=1 make -f docker.Makefile test-e2e-non-experimental" - - stage "e2e (experimental)" - sh "E2E_UNIQUE_ID=clie2e${BUILD_NUMBER} \ - IMAGE_TAG=clie2e${BUILD_NUMBER} \ - DOCKER_BUILDKIT=1 make -f docker.Makefile test-e2e-experimental" - - stage "e2e (ssh connhelper)" - sh "E2E_UNIQUE_ID=clie2e${BUILD_NUMBER} \ - IMAGE_TAG=clie2e${BUILD_NUMBER} \ - DOCKER_BUILDKIT=1 make -f docker.Makefile test-e2e-connhelper-ssh" - } + stages { + stage("Docker info") { + steps { + sh "docker version" + sh "docker info" + } + } + stage("e2e (non-experimental) - stable engine") { + steps { + sh "E2E_UNIQUE_ID=clie2e${BUILD_NUMBER} \ + IMAGE_TAG=clie2e${BUILD_NUMBER} \ + DOCKER_BUILDKIT=1 make -f docker.Makefile test-e2e-non-experimental" + } + } + stage("e2e (non-experimental) - 18.09 engine") { + steps { + sh "E2E_ENGINE_VERSION=18.09-dind \ + E2E_UNIQUE_ID=clie2e${BUILD_NUMBER} \ + IMAGE_TAG=clie2e${BUILD_NUMBER} \ + DOCKER_BUILDKIT=1 make -f docker.Makefile test-e2e-non-experimental" + } + } + stage("e2e (experimental)") { + steps { + sh "E2E_UNIQUE_ID=clie2e${BUILD_NUMBER} \ + IMAGE_TAG=clie2e${BUILD_NUMBER} \ + DOCKER_BUILDKIT=1 make -f docker.Makefile test-e2e-experimental" + } + } + stage("e2e (ssh connhelper)") { + steps { + sh "E2E_UNIQUE_ID=clie2e${BUILD_NUMBER} \ + IMAGE_TAG=clie2e${BUILD_NUMBER} \ + DOCKER_BUILDKIT=1 make -f docker.Makefile test-e2e-connhelper-ssh" + } + } + } }