This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 84378fc3 ci: evict the deadlinks archives from the yarn cache before 
install (#1755)
84378fc3 is described below

commit 84378fc3e955011c876667a744019010812cb49c
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Sep 15 08:01:06 2026 +0200

    ci: evict the deadlinks archives from the yarn cache before install (#1755)
    
    Build 2796 on websites3 failed yarn install with YN0018 (The remote
    archive doesn't match the expected checksum) for the deadlinks-macos
    and deadlinks-windows packages, while the same yarn.lock built fine in
    2795 on websites2. The archives are generated by github-release-binary.js
    and yarn caches them by locator hash only, so a node that once cached a
    differently-built archive keeps failing even though the lockfile is
    correct. Remove the three entries before yarn install so they are always
    rebuilt from the GitHub release.
    
    Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
---
 Jenkinsfile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 1868ebf8..07bf3aa7 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -55,6 +55,10 @@ pipeline {
             }
 
             steps {
+                // The @deadlinks/cargo-deadlinks* archives are generated by 
github-release-binary.js and
+                // cached by locator hash only, so a node holding a stale copy 
fails yarn install with
+                // YN0018 forever. Evict them so they are rebuilt from the 
GitHub release on every build.
+                sh 'cd $WORKSPACE/camel-website && rm -f "$(yarn config get 
cacheFolder)"/@deadlinks-cargo-deadlinks*'
                 sh "cd $WORKSPACE/camel-website && yarn install && yarn clean 
&& yarn workspaces foreach --all install && 
HUGO_PARAMS_GitHubUsername=$GITHUB_USR HUGO_PARAMS_GitHubToken=$GITHUB_PSW yarn 
build-all"
             }
         }

Reply via email to