From 7a10e71203b6793d1e623f887a1aef6efef7346e Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Mon, 14 Sep 2026 15:26:50 -0400 Subject: [PATCH] Update the code to fix --- Jenkinsfile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 96bac46..e0bd870 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,9 +38,17 @@ pipeline { script { // This command should run on the agent to configure the git environment sh 'git config --global url."https://github.com/".insteadOf git://github.com/' - sh 'corepack enable' - sh 'corepack prepare pnpm@12.4.1 --activate' - sh 'pnpm --version' + sh ''' + node --version + corepack --version + + rm -rf "$HOME/.cache/node/corepack" + + corepack enable + corepack prepare pnpm@12.4.1 --activate + pnpm --version + ''' + } // git branch: 'main', // credentialsId: 'c9d0ec7c-0749-4588-8960-e96cab84d462',