diff --git a/tekton/ci/jobs/tekton-image-build.yaml b/tekton/ci/jobs/tekton-image-build.yaml index e3b511420..29947b898 100644 --- a/tekton/ci/jobs/tekton-image-build.yaml +++ b/tekton/ci/jobs/tekton-image-build.yaml @@ -47,7 +47,9 @@ spec: while [ ! -f "${CONTEXT}/Dockerfile" ]; do if [ "${CONTEXT}" == "/" ]; then echo "No Dockerfile found in ${FQ_DOCKER_FILE}'s directory or any of its parents" - exit 1 + # The file may be missing if it was deleted as part of the PR + # so we stop building but do not fail + exit 0 fi CONTEXT=$(dirname ${CONTEXT}) done