From 59c090bbc4f1df1ff8fd48e4a79aa0e946d50a6e Mon Sep 17 00:00:00 2001 From: nanxun Date: Wed, 12 Aug 2026 16:18:59 +0800 Subject: [PATCH] fix(ci): preserve build cache below four gigabytes --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1adfd73..276e23b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -85,7 +85,10 @@ pipeline { "$IMAGEFIND_DEPENDENCY_TMPDIR" "$IMAGEFIND_VERIFY_TMPDIR" artifacts chmod 700 "$DOCKER_CONFIG" available_kb=$(df -Pk "$WORKSPACE" | awk 'NR == 2 { print $4 }') - test "$available_kb" -ge 4194304 + test "$available_kb" -ge 3145728 || { + printf 'at least 3 GiB free disk space is required; available: %s KiB\n' "$available_kb" >&2 + exit 1 + } ''' } }