提交jenkins自动化流水线

This commit is contained in:
Home
2026-03-30 03:15:01 +08:00
parent dc5e769ef1
commit 1970d8b037
+7 -7
View File
@@ -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
'''
}
}