From 70a2eec2ab19f63c0724cc2fa79052f6b1d62c86 Mon Sep 17 00:00:00 2001 From: Guilherme Gallo Date: Fri, 22 Aug 2025 20:22:15 -0300 Subject: [PATCH] ci/baremetal: Use curl-with-retry in build scripts Signed-off-by: Guilherme Gallo Part-of: --- .gitlab-ci/container/baremetal_build.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci/container/baremetal_build.sh b/.gitlab-ci/container/baremetal_build.sh index e4605085bdf..a855e1ec549 100644 --- a/.gitlab-ci/container/baremetal_build.sh +++ b/.gitlab-ci/container/baremetal_build.sh @@ -12,8 +12,7 @@ S3_BASE_PATH="${S3_HOST}/${S3_KERNEL_BUCKET}" ARTIFACTS_PATH="${LAVA_DISTRIBUTION_TAG}/lava-rootfs.tar.zst" ARTIFACTS_URL="$(find_s3_project_artifact "${ARTIFACTS_PATH}")" -curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \ - "${ARTIFACTS_URL}" -o rootfs.tar.zst +curl-with-retry -o rootfs.tar.zst "${ARTIFACTS_URL}" mkdir -p /rootfs-"$arch" tar -C /rootfs-"$arch" '--exclude=./dev/*' --zstd -xf rootfs.tar.zst rm rootfs.tar.zst @@ -22,9 +21,7 @@ if [[ $arch == "arm64" ]]; then mkdir -p /baremetal-files pushd /baremetal-files - curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \ - -O "${KERNEL_IMAGE_BASE}"/arm64/Image - curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \ - -O "${KERNEL_IMAGE_BASE}"/arm64/Image.gz + curl-with-retry -O "${KERNEL_IMAGE_BASE}"/arm64/Image + curl-with-retry -O "${KERNEL_IMAGE_BASE}"/arm64/Image.gz popd fi