提交jenkins自动化流水线
This commit is contained in:
+7
-7
@@ -35,12 +35,12 @@ pipeline {
|
||||
sh "rm -rf dist/" // 清理 UniApp 打包生成的 dist 目录
|
||||
}
|
||||
}
|
||||
stage('安装依赖') {
|
||||
steps {
|
||||
echo "✅ 安装 UniApp 依赖(忽略平台+开权限+强制)"
|
||||
sh "npm install --force --unsafe-perm --ignore-platform"
|
||||
}
|
||||
}
|
||||
// stage('安装依赖') {
|
||||
// steps {
|
||||
// echo "✅ 安装 UniApp 依赖(忽略平台+开权限+强制)"
|
||||
// sh "npm install --force --unsafe-perm --ignore-platform"
|
||||
// }
|
||||
// }
|
||||
stage('读取 manifest 版本号 → 写入环境变量') {
|
||||
steps {
|
||||
script {
|
||||
@@ -69,7 +69,7 @@ pipeline {
|
||||
steps {
|
||||
sh '''
|
||||
# =============== 安装 p12 证书 ===============
|
||||
|
||||
security unlock-keychain -p ${MAC_LOGIN_PWD} ~/Library/Keychains/login.keychain-db
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user