提交jenkins自动化流水线
This commit is contained in:
@@ -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
|
registry=https://registry.npmmirror.com
|
||||||
|
|
||||||
# 把缓存放到项目目录里,解决 Jenkins 权限问题
|
# 缓存放到项目内,解决 Jenkins 权限问题
|
||||||
cache=.npm
|
cache=.npm
|
||||||
|
|
||||||
# 安全关闭一些权限问题
|
# 权限兼容(必须)
|
||||||
unsafe-perm=true
|
unsafe-perm=true
|
||||||
|
|
||||||
|
# uniapp 兼容
|
||||||
|
strict-peer-dependencies=false
|
||||||
|
node-linker=hoisted
|
||||||
|
ignore-deprecations=true
|
||||||
Vendored
+1
-7
@@ -22,13 +22,7 @@ pipeline {
|
|||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('修复npm环境') {
|
|
||||||
steps {
|
|
||||||
sh '''
|
|
||||||
npm config set prefix $WORKSPACE/.npm-global
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('安装依赖') {
|
stage('安装依赖') {
|
||||||
steps {
|
steps {
|
||||||
sh 'npm install'
|
sh 'npm install'
|
||||||
|
|||||||
Reference in New Issue
Block a user