From 4e36130d41afbd3ea82fd2c9fff2917b79bc257a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Mon, 30 Mar 2026 14:36:57 +0800 Subject: [PATCH] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E=E5=90=89?= =?UTF-8?q?=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84=E9=9C=80?= =?UTF-8?q?=E6=B1=82=5F=E5=AE=8C=E5=96=84=E4=BB=A3=E7=A0=81=E8=A7=84?= =?UTF-8?q?=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile-ios | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Jenkinsfile-ios b/Jenkinsfile-ios index 495b01ea..839ab02d 100644 --- a/Jenkinsfile-ios +++ b/Jenkinsfile-ios @@ -29,6 +29,10 @@ pipeline { CERTIFICATE_NAME = "Apple Distribution: Bank of Jilin Co., Ltd. (2EP6SRRN43)" // 证书名称(钥匙串里看) PROVISIONING_PROFILE_UUID = "e3487fe1-19dc-4fc7-90df-11caf27da0c6" // 描述文件UUID + // ====================== TestFlight上传配置 ====================== + API_KEY = "ACRB9XFL9G" // App Store Connect API 密钥ID + API_ISSUER = "69a6de7f-3378-47e3-e053-5b8c7c11a4d1" // API 密钥对应的Issuer ID + APP_TYPE = "ios" // 应用类型(固定为ios) } stages { stage('打印环境变量') { @@ -188,6 +192,26 @@ pipeline { ''' } } + stage('🚀 验证并上传 TestFlight') { + steps { + echo "✅ 开始验证 IPA 有效性" + + // 1. 先验证 IPA(必须这一步,提前拦截错误) + sh """ + xcrun altool --validate-app \\ + --file ${APP_DIR}/build/${SCHEME_NAME}.ipa \\ + --type ${API_TYPE} \\ + --apiKey ${API_KEY} \\ + --apiIssuer"${API_ISSUER} + """ + + echo "✅ IPA 验证成功!开始上传到 TestFlight" + + + + echo "🎉 全部完成!请到 App Store Connect TestFlight 查看构建" + } + } } post {