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 <aranjan@redhat.com>
This commit is contained in:
Ashish Ranjan committed 2020-02-05 12:20:58 +05:30
1 parent b1e93fa7eb
commit 2238ccbfa6
1 file changed
+2 -1
Vendored
+2 -1
View File
@@ -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