Skip to content

Commit

Permalink
Error if git clone fails (knative#491)
Browse files Browse the repository at this point in the history
while setting up serving/eventing
  • Loading branch information
navidshaikh authored Oct 12, 2020
1 parent 978c349 commit 4e11362
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions openshift/e2e-tests-openshift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ readonly EVENTING_NAMESPACE="knative-eventing"
readonly E2E_TIMEOUT="60m"
readonly OLM_NAMESPACE="openshift-marketplace"

# if you want to setup the nightly serving/eventing, set `release-next` below or else set release branch
# if you want to setup the nightly serving/eventing, set `release-next` OR
# set release branch name for example: release-v0.19.1
readonly SERVING_BRANCH="release-next"
readonly EVENTING_BRANCH="release-next"

Expand Down Expand Up @@ -186,7 +187,7 @@ install_knative_serving_branch() {

header "Installing Knative Serving from openshift/knative-serving branch $branch"
rm -rf /tmp/knative-serving
git clone --branch $branch https://github.com/openshift/knative-serving.git /tmp/knative-serving
git clone --branch $branch https://github.com/openshift/knative-serving.git /tmp/knative-serving || return 1
pushd /tmp/knative-serving

oc new-project $SERVING_NAMESPACE
Expand Down Expand Up @@ -256,7 +257,7 @@ install_knative_eventing_branch() {

header "Installing Knative Eventing from openshift/knative-eventing branch $branch"
rm -rf /tmp/knative-eventing
git clone --branch $branch https://github.com/openshift/knative-eventing.git /tmp/knative-eventing
git clone --branch $branch https://github.com/openshift/knative-eventing.git /tmp/knative-eventing || return 1
pushd /tmp/knative-eventing/

create_knative_namespace eventing
Expand Down

0 comments on commit 4e11362

Please sign in to comment.