From 83f16757e72ea565f7a7f8e499e351da8025a6ba Mon Sep 17 00:00:00 2001 From: nanxun Date: Fri, 3 Jul 2026 16:08:41 +0800 Subject: [PATCH] ci: add --no-cache to bypass stale build cache causing FileLoadException Removing from the csproj changed the publish layout, but the old registry build cache still contains the RID-poisoned layers. Subsequent builds cached at the COPY/RUN layer boundary reuse those stale layers, causing FileLoadException at runtime. Add --no-cache to both API and Web buildx invocations so every build produces fresh layers. Once the pipeline stabilizes, we can re-enable cache-from with the updated cache tag. Co-Authored-By: Claude Opus 4.8 (1M context) --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bc880ab..0e7db6e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -143,7 +143,7 @@ pipeline { --network host \ --progress=plain \ --provenance=false \ - --cache-from type=registry,ref=${API_CACHE_IMAGE} \ + --no-cache \ --build-arg HTTP_PROXY=${HTTP_PROXY_URL} \ --build-arg HTTPS_PROXY=${HTTP_PROXY_URL} \ --build-arg NO_PROXY=${NO_PROXY_HOSTS} \ @@ -253,7 +253,7 @@ pipeline { --network host \ --progress=plain \ --provenance=false \ - --cache-from type=registry,ref=${WEB_CACHE_IMAGE} \ + --no-cache \ --build-arg NODE_IMAGE=${WEB_NODE_IMAGE} \ --build-arg NGINX_IMAGE=${WEB_NGINX_IMAGE} \ --build-arg HTTP_PROXY=${HTTP_PROXY_URL} \