From 79e7c0eda2ada7bda9480de5203b82440d3af6b2 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Tue, 12 Oct 2021 11:08:12 +0200 Subject: [PATCH] jenkins/toolchains: fetch DIGESTS file to allow reusing downloaded SDK as seed The catalyst build uses the same SDK version as seed as the current SDK, but will only reuse the cached tarball if a DIGESTS file exists and is correct. Prefetch this file to prevent the build from trying to access google storage anonymously. Signed-off-by: Jeremi Piotrowski --- jenkins/toolchains.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jenkins/toolchains.sh b/jenkins/toolchains.sh index e9246d848e..73719fff7f 100755 --- a/jenkins/toolchains.sh +++ b/jenkins/toolchains.sh @@ -62,6 +62,9 @@ script() { source .repo/manifests/version.txt export FLATCAR_BUILD_ID +# Fetch DIGEST to prevent re-downloading the same SDK tarball +enter gangue get --json-key /etc/portage/gangue.json "${DOWNLOAD_ROOT_SDK}/amd64/${FLATCAR_SDK_VERSION}/flatcar-sdk-amd64-${FLATCAR_SDK_VERSION}.tar.bz2.DIGESTS" /mnt/host/source/.cache/sdks/ + script update_chroot \ --toolchain_boards="${BOARD}" --dev_builds_sdk="${DOWNLOAD_ROOT_SDK}"