Skip to content

Commit

Permalink
Don't run E2E tests if DOCKER_REPO_OVERRIDE is the release GCR (knati…
Browse files Browse the repository at this point in the history
  • Loading branch information
adrcunha authored and knative-prow-robot committed Nov 22, 2018
1 parent 6a266d8 commit defbe8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ function initialize() {

(( IS_PROW )) && [[ -z "${GCP_PROJECT}" ]] && IS_BOSKOS=1

# Safety checks

if [[ "${DOCKER_REPO_OVERRIDE}" =~ ^gcr.io/knative-releases/?$ ]]; then
abort "\$DOCKER_REPO_OVERRIDE is set to ${DOCKER_REPO_OVERRIDE}, which is forbidden"
fi

readonly RUN_TESTS
readonly EMIT_METRICS
readonly E2E_CLUSTER_VERSION
Expand Down

0 comments on commit defbe8e

Please sign in to comment.