From 2238ccbfa68138891ea7398e4ae8ee344698ddbd Mon Sep 17 00:00:00 2001 From: Ashish Ranjan Date: Wed, 5 Feb 2020 00:07:57 +0530 Subject: [PATCH] Jenkins: Updates jenkins file to pre clean the k8s cluster This commit updates the jenkins file to pre clean the k8s cluster before the running the integeration tests. Signed-off-by: Ashish Ranjan --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b7c765687..d88b69deb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -170,8 +170,9 @@ def RunIntegrationTest(k, v) { script{ try{ withEnv(["KUBE_VERSION=${v}"]){ - unstash 'repo-amd64' echo "running tests on k8s version ${v}" + unstash 'repo-amd64' + sh "tests/scripts/kubeadm.sh clean || 1" sh 'tests/scripts/makeTestImages.sh load amd64' sh "tests/scripts/kubeadm.sh up" sh '''#!/bin/bash