diff --git a/hack/jenkins/e2e.sh b/hack/jenkins/e2e.sh index 66bd0a6776b..a1a684a6e70 100755 --- a/hack/jenkins/e2e.sh +++ b/hack/jenkins/e2e.sh @@ -1477,6 +1477,8 @@ fi # Jenkins will look at the junit*.xml files for test failures, so don't exit # with a nonzero error code if it was only tests that failed. if [[ "${E2E_TEST,,}" == "true" ]]; then + # Check to make sure the cluster is up before running tests, and fail if it's not. + go run ./hack/e2e.go ${E2E_OPT} -v --isup go run ./hack/e2e.go ${E2E_OPT} -v --test --test_args="${GINKGO_TEST_ARGS}" && exitcode=0 || exitcode=$? if [[ "${E2E_PUBLISH_GREEN_VERSION:-}" == "true" && ${exitcode} == 0 && -n ${githash:-} ]]; then echo "publish githash to ci/latest-green.txt: ${githash}"