提交 4613b050 作者: 郁骅焌

再试试

上级 1da844fb
......@@ -16,18 +16,16 @@ 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/pnpm /usr/bin/pnpm"
// sh "rm -rf node_modules"
// sh "rm -rf yarn.lock"
// sh "rm -rf package-lock.json"
// sh "rm -rf pnpm-lock.yaml"
// 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_libvips_binary_host=https://npm.taobao.org/mirrors/sharp-libvips"
// sh "# npm config set registry https://registry.npmjs.org"
// sh "pnpm install"
// sh "npm run build"
sh "pnpm -v"
sh "rm -rf node_modules"
sh "rm -rf yarn.lock"
sh "rm -rf package-lock.json"
sh "rm -rf pnpm-lock.yaml"
sh "npm config set registry https://registry.npmmirror.com"
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 "# npm config set registry https://registry.npmjs.org"
sh "pnpm install"
sh "npm run build"
}
//dockerfile编译
stage('Build docker') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论