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