From fe7450bf4361846ef664021bf019bc34dfafa1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=9A=82=E8=9A=81=E4=BA=91?= Date: Fri, 11 Sep 2026 20:27:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .jenkins/.env.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.jenkins/.env.yml b/.jenkins/.env.yml index 81a73ec..a17137b 100644 --- a/.jenkins/.env.yml +++ b/.jenkins/.env.yml @@ -2,5 +2,15 @@ masterProfiles: ['','uat','prod'] Profiles: ['','dev'] jobConfigFile: "djangoadminConfig.yml" npmCompileCMD: | - yarn install \ - && yarn run build:${PROFILE} \ No newline at end of file + export PATH=/usr/local/node/bin:$PATH + set -e \ + && yarn config set registry https://registry.npmmirror.com \ + && yarn config get registry \ + && yarn config set strict-ssl false \ + && yarn config set sass_binary_site https://repo.huaweicloud.com/node-sass/node-sass \ + && rm -rf package-lock.json \ + && rm -rf node_modules/.cache 2>/dev/null || true \ + && yarn cache clean --force \ + && yarn global add node-gyp@10.3.1 \ + && yarn install --unsafe-perm --legacy-peer-deps --network-timeout 300000 \ + && yarn run build:${PROFILE} \ No newline at end of file