iOS上传符号表

main
zhangaotian 2026-04-07 13:43:48 +08:00
parent c2b4124449
commit df6996329d
2 changed files with 41 additions and 13 deletions

View File

@ -31,15 +31,15 @@ def GetRemote(){
/*if('BilibiliDev' == params.Channel)
return 'bilibili';
else*/
return 'main';
return 'dev_ios';
}
def SendMessageToWechat(message){
if (!message) {
if (!message) {
return }
def INNER_ROBOT="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3c92758c-1128-4931-ac8d-f19669d7befe"
sh "chmod +x $WORKSPACE/Tool/build_tools/send_wechat_message.sh"
sh "$WORKSPACE/Tool/build_tools/send_wechat_message.sh '${INNER_ROBOT}' '@all' '${message}'"
def INNER_ROBOT="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3c92758c-1128-4931-ac8d-f19669d7befe"
sh "chmod +x $WORKSPACE/Tool/build_tools/send_wechat_message.sh"
sh "$WORKSPACE/Tool/build_tools/send_wechat_message.sh '${INNER_ROBOT}' '@all' '${message}'"
}
def ParseBuildLogError(logPath){
@ -61,7 +61,11 @@ def ParseBuildLogError(logPath){
}
pipeline {
agent any
agent any
//agent { label params.BUILD_NODE } //
// environment { GITEA_CREDENTIALS = 'gitea_mac2'
// PATH = "/opt/homebrew/bin:${env.PATH}"
// } // Jenkins ID
stages {
stage('拉最新工程') {
steps {
@ -69,7 +73,7 @@ pipeline {
try {
def currentPath = sh(script: 'pwd', returnStdout: true).trim()
echo "cd ${currentPath}"
// 1.
def gitDirExists = sh(script: '[ -d ".git" ] && echo "true" || echo "false"', returnStdout: true).trim()
def scriptPathExists = fileExists("${WORKSPACE}/Tool/build_tools/git_revert_modules_modification.sh")
@ -89,7 +93,7 @@ pipeline {
cloneOption(noTags: false, reference: '', shallow: false, timeout: 120),
submodule(recursiveSubmodules: true, reference: '', timeout: 1200)
],
userRemoteConfigs: [[url: 'http://1.14.122.170:3000/PHXH/NLDClient.git']]
userRemoteConfigs: [[url: 'http://1.14.122.170:3000/PHXH/NLDClient.git' ]]
)
// 3. GamePlay_Dll
@ -311,6 +315,15 @@ pipeline {
}
}
}
stage('发布debug版本号') {
steps {
script {
sh "chmod +x $WORKSPACE/Tool/build_tools/debug_send_version.sh"
def result=0
result = sh(script: "$WORKSPACE/Tool/build_tools/debug_send_version.sh")
}
}
}
/*stage('上传IPA') {
steps {
script {
@ -335,12 +348,27 @@ pipeline {
}
}
}*/
stage('发布debug版本号') {
stage('上传符号表') {
steps {
script {
sh "chmod +x $WORKSPACE/Tool/build_tools/debug_send_version.sh"
def result=0
result = sh(script: "$WORKSPACE/Tool/build_tools/debug_send_version.sh")
//
if(Upload_CrashSight == true && params.Build_InitApp == true)
{
sh "chmod +x $WORKSPACE/Tool/build_tools/upload_ios_symbol_file.sh"
def playersettings = "${WORKSPACE}/Tool/Channels/${CHANNEL_PARAM}/ChannelSetting.yaml"
def cfg = readYaml(file: playersettings)
def symbol_path="$WORKSPACE/Builds/$CHANNEL_PARAM/$PLATFORM_PARAM/$VERSION_PARAM"
def upload_result=0
def crashsightConfig = cfg?."CrashSight_${PLATFORM_PARAM}"
def crashsightId = (crashsightConfig?.id ?: '').trim()
def crashsightKey = (crashsightConfig?.key ?: '').trim()
upload_result = sh(script: "$WORKSPACE/Tool/build_tools/upload_ios_symbol_file.sh ${VERSION_PARAM} ${symbol_path} ${crashsightId} ${crashsightKey}", returnStatus: true, returnStdout: false)
if(upload_result != 0)
{
def message = "【${PLATFORM_PARAM}】【${VERSION_PARAM}】【Debug】【${CHANNEL_PARAM}】上传符号表异常"
SendMessageToWechat(message)
}
}
}
}
}

@ -1 +1 @@
Subproject commit df8e5cd854a3a40b5efeb4f4c04827db68553a9c
Subproject commit 5ce5d06f0956e7e799bf796893f95dc50e91ca2f