提交jenkins自动化流水线

This commit is contained in:
Home
2026-03-28 21:54:03 +08:00
parent 36c59033d8
commit 9f33f04e63
2 changed files with 10 additions and 26 deletions
+9 -19
View File
@@ -1,23 +1,13 @@
# 启用严格模式,确保依赖版本一致
strict-peer-dependencies=false
# 配置依赖安装目录(pnpm 特有,节省磁盘空间)
store-dir=~/.pnpm-store
# 兼容 uniapp 对依赖的查找逻辑
node-linker=hoisted
# 忽略废弃依赖警告
ignore-deprecations=all
# 忽略对等依赖警告
strict-peer-dependencies=false
# 淘宝镜像(加速下载)
# 淘宝镜像
registry=https://registry.npmmirror.com
# 缓存放到项目目录里,解决 Jenkins 权限问题
# 缓存放到项目,解决 Jenkins 权限问题
cache=.npm
# 安全关闭一些权限问题
unsafe-perm=true
# 权限兼容(必须)
unsafe-perm=true
# uniapp 兼容
strict-peer-dependencies=false
node-linker=hoisted
ignore-deprecations=true
Vendored
+1 -7
View File
@@ -22,13 +22,7 @@ pipeline {
'''
}
}
stage('修复npm环境') {
steps {
sh '''
npm config set prefix $WORKSPACE/.npm-global
'''
}
}
stage('安装依赖') {
steps {
sh 'npm install'