提交 6d6eacc6 作者: 郁骅焌

打包脚本修改

上级 4d48bb9d
...@@ -16,15 +16,15 @@ node('jenkins-jnlp') { ...@@ -16,15 +16,15 @@ 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 "pnpm config set registry https://registry.npmmirror.com" sh "# pnpm config set registry https://registry.npmmirror.com"
sh "pnpm config set sharp_binary_host=https://npmmirror.com/mirrors/sharp" sh "# pnpm config set sharp_binary_host=https://npmmirror.com/mirrors/sharp"
sh "pnpm config set sharp_libvips_binary_host=https://npmmirror.com/mirrors/sharp-libvips" sh "# pnpm config set sharp_libvips_binary_host=https://npmmirror.com/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"
} }
//dockerfile编译 //dockerfile编译
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论