From e02e213d0d78deb604c810d6f781692cc583c151 Mon Sep 17 00:00:00 2001 From: Vincent Latombe Date: Fri, 17 Jan 2020 10:45:01 +0100 Subject: [PATCH] Only test ContainerExecDecoratorTest to focus on failure --- Jenkinsfile | 2 +- kind.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0c43c7d5d8..024886dab4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,7 +7,7 @@ parallel kind: { node('docker') { timeout(60) { checkout scm - withEnv(["WSTMP=${pwd tmp: true}"]) { + withEnv(["WSTMP=${pwd tmp: true}","TEST=ContainerExecDecoratorTest"]) { try { sh 'bash kind.sh' dir (WSTMP) { diff --git a/kind.sh b/kind.sh index 62c338de0a..4666d553a3 100644 --- a/kind.sh +++ b/kind.sh @@ -9,21 +9,25 @@ then fi if [ \! -f $WSTMP/kubectl ] then - curl -Lo $WSTMP/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.15.3/bin/linux/amd64/kubectl + curl -Lo $WSTMP/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/$(uname | tr '[:upper:]' '[:lower:]')/amd64/kubectl chmod +x $WSTMP/kubectl fi -# TODO use kind load to take better advantage of images cached in the host VM export cluster=ci$RANDOM export KUBECONFIG=$WSTMP/kubeconfig-$cluster kind create cluster --name $cluster --wait 5m function cleanup() { kind export logs --name $cluster $WSTMP/kindlogs || : kind delete cluster --name $cluster || : + rm $KUBECONFIG } trap cleanup EXIT kubectl cluster-info +DOCKER_IMAGE=$(grep -e image: test-in-k8s.yaml | cut -d ':' -f 2- | xargs) +docker pull $DOCKER_IMAGE +kind load docker-image $DOCKER_IMAGE --name $cluster + bash test-in-k8s.sh rm -rf $WSTMP/surefire-reports kubectl cp jenkins:/checkout/target/surefire-reports $WSTMP/surefire-reports