diff --git a/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-commands.sh b/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-commands.sh index 873a051803bde..4b69d9b73f257 100755 --- a/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-commands.sh +++ b/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-commands.sh @@ -122,8 +122,13 @@ fi function upgrade() { set -x + TARGET_RELEASES="${OPENSHIFT_UPGRADE_RELEASE_IMAGE_OVERRIDE}" + if [[ -f "${SHARED_DIR}/override-upgrade" ]]; then + TARGET_RELEASES="$(< "${SHARED_DIR}/override-releases")" + echo "Overriding upgrade target to ${TARGET_RELEASES}" + fi openshift-tests run-upgrade all \ - --to-image "${OPENSHIFT_UPGRADE_RELEASE_IMAGE_OVERRIDE}" \ + --to-image "${TARGET_RELEASES}" \ --options "${TEST_UPGRADE_OPTIONS-}" \ --provider "${TEST_PROVIDER}" \ -o "${ARTIFACT_DIR}/e2e.log" \