From d33c5b7120ec853a98ca06c15a2bd1b2a8f7c517 Mon Sep 17 00:00:00 2001 From: Davlet Panech Date: Fri, 8 Sep 2023 12:58:52 -0400 Subject: [PATCH] build-docker-images: additional error handling Handle errors caused by failed git clone attempts. Related-Bug: 2034255 Signed-off-by: Davlet Panech Change-Id: Ie3708a6522ac4e4ebda9502b697de30927b3d5eb --- build-tools/build-docker-images/build-stx-images.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build-tools/build-docker-images/build-stx-images.sh b/build-tools/build-docker-images/build-stx-images.sh index c4f11efa..8ea449cf 100755 --- a/build-tools/build-docker-images/build-stx-images.sh +++ b/build-tools/build-docker-images/build-stx-images.sh @@ -655,6 +655,7 @@ function build_image_docker { get_git "${DOCKER_REPO}" "${DOCKER_REF}" "${DOCKER_PATCHES}" if [ $? -ne 0 ]; then echo "Failed to clone or update ${DOCKER_REPO}. Aborting..." >&2 + RESULTS_FAILED+=(${LABEL}) cd ${ORIGWD} return 1 fi @@ -775,6 +776,7 @@ function build_image_script { get_git "${SOURCE_REPO}" "${SOURCE_REF}" "${SOURCE_PATCHES}" if [ $? -ne 0 ]; then echo "Failed to clone or update ${SOURCE_REPO}. Aborting..." >&2 + RESULTS_FAILED+=(${LABEL}) cd ${ORIGWD} return 1 fi