提交 1da844fb 作者: 郁骅焌

版本

上级 f68ae5e7
...@@ -16,16 +16,18 @@ node('jenkins-jnlp') { ...@@ -16,16 +16,18 @@ node('jenkins-jnlp') {
sh "ln -s /opt/node-v20.9.0-linux-x64-glibc-217/bin/yarn /usr/bin/yarn" sh "ln -s /opt/node-v20.9.0-linux-x64-glibc-217/bin/yarn /usr/bin/yarn"
sh "ln -s /opt/node-v20.9.0-linux-x64-glibc-217/bin/pnpm /usr/bin/pnpm" sh "ln -s /opt/node-v20.9.0-linux-x64-glibc-217/bin/pnpm /usr/bin/pnpm"
sh "rm -rf node_modules" // sh "rm -rf node_modules"
sh "rm -rf yarn.lock" // sh "rm -rf yarn.lock"
sh "rm -rf package-lock.json" // sh "rm -rf package-lock.json"
sh "rm -rf pnpm-lock.yaml" // sh "rm -rf pnpm-lock.yaml"
sh "npm config set registry https://registry.npmmirror.com" // sh "npm config set registry https://registry.npmmirror.com"
sh "pnpm config set sharp_binary_host=https://npm.taobao.org/mirrors/sharp" // sh "pnpm config set sharp_binary_host=https://npm.taobao.org/mirrors/sharp"
sh "pnpm config set sharp_libvips_binary_host=https://npm.taobao.org/mirrors/sharp-libvips" // sh "pnpm config set sharp_libvips_binary_host=https://npm.taobao.org/mirrors/sharp-libvips"
sh "# npm config set registry https://registry.npmjs.org" // sh "# npm config set registry https://registry.npmjs.org"
sh "pnpm install" // sh "pnpm install"
sh "npm run build" // sh "npm run build"
sh "pnpm -v"
} }
//dockerfile编译 //dockerfile编译
stage('Build docker') { stage('Build docker') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论