From a84e1d528e38fedfe81225c801ecb9887ee221cb Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Thu, 2 Jun 2016 14:09:35 -0700 Subject: [PATCH] Add a e2e job for continuous Docker validation It runs daily the default e2e tests on GCE, against k8s head, latest GCI build, and latest Docker release. --- .../kubernetes-jenkins/kubernetes-e2e.yaml | 40 ++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/jenkins/job-configs/kubernetes-jenkins/kubernetes-e2e.yaml b/jenkins/job-configs/kubernetes-jenkins/kubernetes-e2e.yaml index 6b295d1085125..0840294018bbf 100644 --- a/jenkins/job-configs/kubernetes-jenkins/kubernetes-e2e.yaml +++ b/jenkins/job-configs/kubernetes-jenkins/kubernetes-e2e.yaml @@ -952,7 +952,6 @@ timeout: 270 jobs: - 'kubernetes-e2e-gce-gci-stable-{suffix}' - # End of GCI jobs # Jobs that run e2e tests on GKE with Trusty as node image on the release-1.2 @@ -1164,3 +1163,42 @@ version-infix: '1-2-1-3' version-env: '' legacy-ginkgo-test-args-env: '' + +# Template for Docker continuous validation tests, running on GCI. See +# https://github.com/kubernetes/kubernetes/issues/25215 for details of what the +# job does. +- job-template: + <<: *e2e_job_defaults + name: 'continuous-docker-validation{suffix}' + test-owner: 'dawnchen@google.com' + node: '{jenkins_node}' + triggers: + - timed: '@daily' + publishers: + - e2e-publishers: + recipients: 'wonderfly@google.com,dawnchen@google.com' + - description-setter: + regexp: KUBE_GCI_DOCKER_VERSION=(.*) + - groovy-postbuild: + script: | + def gciImageMatcher = manager.getLogMatcher("KUBE_GCE_MASTER_IMAGE=(.*)") + if(gciImageMatcher?.matches()) manager.addShortText("GCI Image: " + gciImageMatcher.group(1) + "", "grey", "white", "0px", "white") + def k8sVersionMatcher = manager.getLogMatcher("Using\\spublished\\sversion\\s(.*)\\s\\(from.*") + if(k8sVersionMatcher?.matches()) manager.addShortText("
Kubernetes version: " + k8sVersionMatcher.group(1) + "", "grey", "white", "0px", "white") + def dockerVersionMatcher = manager.getLogMatcher("KUBE_GCI_DOCKER_VERSION=(.*)") + if(dockerVersionMatcher?.matches()) manager.addShortText("Docker Version: " + dockerVersionMatcher.group(1) + "", "grey", "white", "0px", "white") + provider-env: '{gce-provider-env}' + timeout: 30 + job-env: | + export GINKGO_TEST_ARGS="--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]" + export GINKGO_PARALLEL="y" + export PROJECT="k8s-docker-validation" + export JENKINS_GCI_IMAGE_TYPE="preview-test" + +- project: + name: continuous-docker-validation + suffix: + - '': + description: 'Runs the default e2e tests with the latest Kubernetes green build, latest GCI daily build, and latest Docker (pre)release.' + jobs: + - 'continuous-docker-validation{suffix}'