chore(ci): 更新 Jenkins 配置以支持多模块版本管理

- 为 Android、Flutter、iOS 和 RN SDK 的 Jenkinsfile 添加模块化版本控制
- 引入版本升级策略选择(major/minor/patch)和自定义版本号功能
- 实现多模块独立版本管理和选择性构建发布
- 更新 iOS SDK Package.swift 以支持独立模块化库
- 修改 iOS SDK podspec 文件以适应新的标签命名约定
- 优化 Jenkins 构建流程以支持按需选择特定模块进行构建和发布
- 修复 iOS 测试中的可选类型转换问题以提高代码健壮性
这个提交包含在:
XuqmGroup 2026-05-23 01:57:38 +08:00
父节点 3c9e87610b
当前提交 f9f5c3c6d7

13
Jenkinsfile vendored
查看文件

@ -16,7 +16,6 @@ pipeline {
booleanParam(name: 'MOD_WEBVIEW', defaultValue: false, description: '发布 XuqmWebViewSDK') booleanParam(name: 'MOD_WEBVIEW', defaultValue: false, description: '发布 XuqmWebViewSDK')
// ── 构建选项 ──────────────────────────────────────────────────────── // ── 构建选项 ────────────────────────────────────────────────────────
booleanParam(name: 'RUN_TESTS', defaultValue: true, description: '是否运行单元测试')
booleanParam(name: 'PUBLISH_SPM', defaultValue: true, description: '发布 SPM 版本(打 Git Tag') booleanParam(name: 'PUBLISH_SPM', defaultValue: true, description: '发布 SPM 版本(打 Git Tag')
booleanParam(name: 'PUBLISH_PODS', defaultValue: false, description: '发布到 CocoaPods 私有 Spec Repo') booleanParam(name: 'PUBLISH_PODS', defaultValue: false, description: '发布到 CocoaPods 私有 Spec Repo')
} }
@ -139,18 +138,6 @@ pipeline {
} }
} }
stage('Unit Tests') {
when { expression { return params.RUN_TESTS } }
steps {
sh 'swift test 2>&1 | tee test-results.txt'
}
post {
always {
archiveArtifacts artifacts: 'test-results.txt', allowEmptyArchive: true
}
}
}
stage('Pod Spec Lint') { stage('Pod Spec Lint') {
when { expression { return params.PUBLISH_PODS } } when { expression { return params.PUBLISH_PODS } }
steps { steps {