Skip to content

Commit

Permalink
unset null var that are coming from jjb
Browse files Browse the repository at this point in the history
Signed-off-by: Sunnatillo <sunnat.samadov@est.tech>
  • Loading branch information
Sunnatillo committed May 3, 2024
1 parent 105466c commit 7feb226
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions jenkins/scripts/dynamic_worker_workflow/e2e_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,37 @@ if [[ "${CAPM3_VERSION}" == "v1alpha5" ]]; then
export KUBERNETES_VERSION="v1.23.8"
export KUBECTL_SHA256="${KUBECTL_SHA256:-4685bfcf732260f72fce58379e812e091557ef1dfc1bc8084226c7891dd6028f}"
fi
if [[ -z "${KUBERNETES_VERSION:-}" ]]; then

if [[ "${NUM_NODES}" == "null" ]]; then
unset NUM_NODES
fi

if [[ "${GINKGO_FOCUS}" == "null" ]]; then
unset GINKGO_FOCUS
fi

if [[ "${GINKGO_SKIP}" == "null" ]]; then
unset GINKGO_SKIP
fi

if [[ -z "${KUBECTL_SHA256:-}" ]]; then
unset KUBECTL_SHA256
if [[ "${EPHEMERAL_TEST}" == "null" ]]; then
unset EPHEMERAL_TEST
fi

if [[ "${UPGRADE_FROM_RELEASE}" == "null" ]]; then
unset UPGRADE_FROM_RELEASE
fi

if [[ -z "${KUBERNETES_VERSION_UPGRADE_FROM:-}" ]]; then
if [[ "${KUBERNETES_VERSION_UPGRADE_FROM}" == "null" ]]; then
unset KUBERNETES_VERSION_UPGRADE_FROM
fi

if [[ -z "${KUBERNETES_VERSION_UPGRADE_TO:-}" ]]; then
if [[ "${KUBERNETES_VERSION_UPGRADE_TO}" == "null" ]]; then
unset KUBERNETES_VERSION_UPGRADE_TO
fi

if [[ -z "${EPHEMERAL_TEST:-}" ]]; then
unset EPHEMERAL_TEST
if [[ "${KUBECTL_SHA256}" == "null" ]]; then
unset KUBECTL_SHA256
fi

# Since we take care of the repo tested here (to merge the PR), do not update
Expand Down

0 comments on commit 7feb226

Please sign in to comment.