mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 13:50:11 +01:00
ci/baremetal: Use curl-with-retry in build scripts
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36946>
This commit is contained in:
parent
5e745f653f
commit
70a2eec2ab
1 changed files with 3 additions and 6 deletions
|
|
@ -12,8 +12,7 @@ S3_BASE_PATH="${S3_HOST}/${S3_KERNEL_BUCKET}"
|
||||||
ARTIFACTS_PATH="${LAVA_DISTRIBUTION_TAG}/lava-rootfs.tar.zst"
|
ARTIFACTS_PATH="${LAVA_DISTRIBUTION_TAG}/lava-rootfs.tar.zst"
|
||||||
ARTIFACTS_URL="$(find_s3_project_artifact "${ARTIFACTS_PATH}")"
|
ARTIFACTS_URL="$(find_s3_project_artifact "${ARTIFACTS_PATH}")"
|
||||||
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl-with-retry -o rootfs.tar.zst "${ARTIFACTS_URL}"
|
||||||
"${ARTIFACTS_URL}" -o rootfs.tar.zst
|
|
||||||
mkdir -p /rootfs-"$arch"
|
mkdir -p /rootfs-"$arch"
|
||||||
tar -C /rootfs-"$arch" '--exclude=./dev/*' --zstd -xf rootfs.tar.zst
|
tar -C /rootfs-"$arch" '--exclude=./dev/*' --zstd -xf rootfs.tar.zst
|
||||||
rm rootfs.tar.zst
|
rm rootfs.tar.zst
|
||||||
|
|
@ -22,9 +21,7 @@ if [[ $arch == "arm64" ]]; then
|
||||||
mkdir -p /baremetal-files
|
mkdir -p /baremetal-files
|
||||||
pushd /baremetal-files
|
pushd /baremetal-files
|
||||||
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl-with-retry -O "${KERNEL_IMAGE_BASE}"/arm64/Image
|
||||||
-O "${KERNEL_IMAGE_BASE}"/arm64/Image
|
curl-with-retry -O "${KERNEL_IMAGE_BASE}"/arm64/Image.gz
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
||||||
-O "${KERNEL_IMAGE_BASE}"/arm64/Image.gz
|
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue