From 44ce2ec6e34df67a682e12941971b0c9ba3dc58b Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Tue, 19 Jan 2021 17:22:49 -0800 Subject: [PATCH] only add --container-runtime if it is set --- hack/jenkins/common.sh | 2 +- hack/jenkins/linux_integration_tests_podman.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hack/jenkins/common.sh b/hack/jenkins/common.sh index 57a9656b2b..b3a625152e 100755 --- a/hack/jenkins/common.sh +++ b/hack/jenkins/common.sh @@ -301,7 +301,7 @@ if test -f "${TEST_OUT}"; then fi touch "${TEST_OUT}" -if [ -z "${CONTAINER_RUNTIME}" ] +if [ ! -z "${CONTAINER_RUNTIME}" ] then EXTRA_START_ARGS="${EXTRA_START_ARGS} --container-runtime=${CONTAINER_RUNTIME}" fi diff --git a/hack/jenkins/linux_integration_tests_podman.sh b/hack/jenkins/linux_integration_tests_podman.sh index 186e9e0a43..f712f38658 100755 --- a/hack/jenkins/linux_integration_tests_podman.sh +++ b/hack/jenkins/linux_integration_tests_podman.sh @@ -28,12 +28,11 @@ set -e OS_ARCH="linux-amd64" VM_DRIVER="podman" JOB_NAME="Experimental_Podman_Linux" +CONTAINER_RUNTIME="containerd" mkdir -p cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron || echo "FAILED TO GET CRON FILES" sudo install cron/cleanup_and_reboot_Linux.sh /etc/cron.hourly/cleanup_and_reboot || echo "FAILED TO INSTALL CLEANUP" -EXTRA_START_ARGS="--container-runtime=containerd" - # remove possible left over podman containers sudo podman rm -f -v $(sudo podman ps -aq) || true