Commit 137aa6c2 authored by Steven杜宇's avatar Steven杜宇

// 自动上传符号表到bugly

parent 2c6b2f12
......@@ -166,7 +166,10 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-bugly (0.1.0)
fastlane-plugin-pgyer (0.2.8)
fastlane-plugin-upload_dsym_to_bugly (2.2.0)
fastlane-plugin-versioning (0.5.2)
ffi (1.16.3)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
......@@ -287,7 +290,10 @@ PLATFORMS
DEPENDENCIES
cocoapods
fastlane
fastlane-plugin-bugly
fastlane-plugin-pgyer
fastlane-plugin-upload_dsym_to_bugly
fastlane-plugin-versioning
BUNDLED WITH
2.5.9
Bugly(bugly.qq.com/bugly.qq.tds.com)符号表工具上传工具包 V3.3.5
用法 -- Usage
java -jar buglyoa-upload-symbol.jar -appid <APP ID> -appkey <APP KEY> -version <App Version> -platform <App Platform> -inputSymbol <Original Symbol File Path> -inputMapping <Original mapping File Path> -buildNo <buildNo>
参数说明 -- Introduction for arguments
-appid APP ID,可在bugly平台上查看
-appkey APP Key,可在bugly平台上查看
-version APP版本,务必和bugly平台上面看到的crash版本号保持一致
-platform 平台类型包含 Android、IOS、MAC三个选项,注意大小写要正确
-inputSymbol 原始符号表(ios平台是dsym/android平台是debug so)所在文件夹目录路径
-inputMapping [Android平台特有,ios忽略] mapping文件路径或所在文件夹目录路径
-buildNo [Android平台特有,ios忽略] 可选字段,只有当构建了多个相同版本号的apk,产生了多个mapping文件时,需要填写buildNo区分
##[info]args is ArgsParser{appId='3b10faa43e', appKey='e4bd292e-596d-4942-afda-dd841808218e', appPackage='com.intelligence.galaxy', appVersion='0.5.0.8', appBuildNo='null', platformId='IOS', enviroment='null', symbolPathName='/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp', mappingPathName='null', appPathName='null'}
##[info]param is : AtomParam{bundleId='com.intelligence.galaxy', version='0.5.0.8', secret='null', platform='IOS', symbolPath='/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp', appPath='null', mappingPath='null', secretSource='input', secretInputAppId='3b10faa43e', secretInputKey='e4bd292e-596d-4942-afda-dd841808218e', buildNo='null', buildPackageType='app', appModuleList='null', moduleName='null', envType='null'}
##[info]deleteDirFiles file path is /Users/edy/galaxy/galaxy/buglybin
##[info]packSymbolFile file
##[info]workspace:null
##[info]buildPackageType:app
##[info]checkSymbolUpload request json is {"appID":"3b10faa43e","symbolUUIDs":["dde1fe1f7690329d9ba49ff0cdf36758","067701553e23321d9ff8de895e8956dc","4a48f4fdee753cd7b79374b64b4f781a","c6f99418189e31658c9bca8cce338549","e2e29881feed3e158bb6eb4a8e42d08d","24ef35e26edf3817a1fae42cd7ff285a","f325896ce90133b582eb02fd112f5817","7cc2170f7b6a3e359926abe00417cf3a","de905b01308e30f8843c0a415ab16eac","93fc29f9dbd135e8aa0f066cc5258472","c8c2200a65b13066bbc13794390a4242","b51428e402173b66bde0390fa04376ef","e86d4e10779b3ae993ffd78b34930d2d","0449640aab913cc8938189237bf88580","21280309a0b833b69f54e1c765fb41d0","6f37e6fae8233ab1bc3096f93e18e757","d9db75ef38f03b5c81779f5e6b2fc760","2895fd28a64f38e2b621aa64d4326880","c1807b8e31a83dff9f5c82ccc410a31a","1d08656404be37b5b05ba7566d06705e","74839dc07b7937a5a7f935e587908058"]}
##[info]retCode: 200 response message: {"statusCode":0,"msg":"部分符号表未上传: 2895fd28a64f38e2b621aa64d4326880","notExistUUIDs":["2895fd28a64f38e2b621aa64d4326880"]}
##[info]find dsym file:[/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM]
##[info]pack dsym file
##[info]extractStif source file:/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM dest file:/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM.zip
##[info]bugly tools ios params: -i /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM -o /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM.zip -llvm
[SymtabTool-I] dSymFiles size is : 1
Bugly Symtab Tool for iOS: 3.3.16
[SymtabTool-I] Begin to parse file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/galaxy
[SymtabTool-I] Architecture: arm64
[SymtabTool-I] Begin to parse file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/galaxy
[SymtabTool-I] Architecture: arm64
[SymtabTool-I] Successfully parsed the file!
/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/galaxy [arm64] 2895fd28a64f38e2b621aa64d4326880
[SymtabTool-I] Extracting symtab file: galaxy
[SymtabTool-I] Begin to parse file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/galaxy
[SymtabTool-I] Architecture: arm64
[SymtabTool-I] Successfully parsed the file!
[SymtabTool-I] Begin to parse file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/galaxy
[SymtabTool-I] Architecture: arm64
[SymtabTool-I] Begin to create symtab file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/buglySymbol&galaxy&arm64&2895fd28a64f38e2b621aa64d4326880.symbol
[SymtabTool-I] Successfully created symtab file!
[SymtabTool-I] Add stif to symtab zip file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/buglySymbol&galaxy&arm64&2895fd28a64f38e2b621aa64d4326880.stif
[SymtabTool-I] Begin to zip stif file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/buglySymbol&galaxy&arm64&2895fd28a64f38e2b621aa64d4326880
[SymtabTool-I] Successfully zipped stif file!
[SymtabTool-I] Begin to zip symtab file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM.zip
[SymtabTool-I] Successfully zipped symtab file!
##[info]extract stif success from:/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM to:/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM.zip
##[info]extractStifFileDetails, visit file name is : buglySymbol&galaxy&arm64&2895fd28a64f38e2b621aa64d4326880.zip
##[info]parseStifFileName prefix : buglySymbol arg1 : galaxy
##[info]parseStifFileName arg2 : arm64 uuid : 2895fd28a64f38e2b621aa64d4326880
##[info]parseStifFileName endfix : zip
##[info]zip stif to /Users/edy/galaxy/galaxy/buglybin/symbolResult/BuglyIosStifListZip.zip
##[info]sourceZipFile file path is :/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM.zip
##[info]dsym file detail :[SymbolFileDetail{name='buglySymbol&galaxy&arm64&2895fd28a64f38e2b621aa64d4326880.zip, uuid='2895fd28a64f38e2b621aa64d4326880, arch='arm64, type=101, moduleName='galaxy}]
##[info]target stif file is :/Users/edy/galaxy/galaxy/buglybin/symbolResult/BuglyIosStifListZip.zip
##[info]symbolFileDetailList size is :1
##[info]uploadSymbolFile file:/Users/edy/galaxy/galaxy/buglybin/symbolResult/BuglyIosStifListZip.zip size:1534031 child count:1
##[info]now begin to uploadFile
##[info]buildName :null&null
##[info]buildID :null
##[info]envtype is null
##[info]request upload Info Url is https://symbol-v2.bugly.qq.com/trpc.eff_tool.symbol_upload_gateway.SymbolUploadGateway/uploadInfo
##[info]request json is {"appID":"3b10faa43e","authSign":"e4bd292e-596d-4942-afda-dd841808218e","appVersion":"0.5.0.8","appBundleID":"com.intelligence.galaxy","appPlatform":2,"appBuildNumber":null,"fileType":201,"fileSize":1534031,"fileMD5":"c6dfe36ae243725803087936386631ce","clientType":7,"clientVersion":"3.3.5","buildPlatform":1,"buildID":null,"buildName":"null&null","fileInfoList":[{"name":"buglySymbol&galaxy&arm64&2895fd28a64f38e2b621aa64d4326880.zip","uuid":"2895fd28a64f38e2b621aa64d4326880","arch":"arm64","type":101,"moduleName":"galaxy"}],"buildRepo":null,"buildBranch":null,"buildCommitID":null,"appType":0}
##[info]retCode: 200 response message: {"statusCode":0,"msg":"success","uploadReqID":"3b10faa43e-1d7d90a1-39b0-484a-b019-fdb69886fc46"}
##[info]now begin to uploadFileContent
##[info]request uploadFileurl is https://symbol-v2.bugly.qq.com/trpc.eff_tool.symbol_upload_gateway.SymbolUploadGateway/uploadFile
##[info]retCode: 200 response message: {"statusCode":0,"msg":"success","uploadReqID":"3b10faa43e-1d7d90a1-39b0-484a-b019-fdb69886fc46"}
##[info]event_name:landun_symbol_plugin_execute_result
event_res:success
err_code:0
err_msg:null
err_type:0
symbol_build_id:com.intelligence.galaxy
user_app_platform:IOS
apk_arch_list:null
symbol_file_arch_list:null
event_duration:3073
user_client_type:7
origin_symbol_file_size_byte:23080831
symbol_file_size_byte:1534031
##[info]atta statistics upload response code: 200 response message:
##[info]-----------------------------------------------------------------------------
##[info]-----------------------------------------------------------------------------
##[info]上传成功!您可以在异常详情页点击"手工还原"以及时还原堆栈信息。
##[info]-----------------------------------------------------------------------------
##[info]-----------------------------------------------------------------------------
......@@ -14,6 +14,37 @@ platform :ios do
develop_branch = "develop"
main_branch = "main"
# 上传adhoc包符号表
lane :upload_adhoc_symbols do
version = get_version_number_from_xcodeproj(target:"galaxy")
build_num = get_build_number_from_xcodeproj(target:"galaxy")
upload_dsym_to_bugly(
file_path: "./App/ad-hoc/galaxy.app.dSYM.zip",
app_key: "e4bd292e-596d-4942-afda-dd841808218e",
app_id: "3b10faa43e",
bundle_id: "com.intelligence.galaxy",
version: "#{version}.#{build_num}",
raise_if_error: false
)
end
# 上传release包符号表
lane :upload_release_symbols do
version = get_version_number_from_xcodeproj(target:"galaxy")
build_num = get_build_number_from_xcodeproj(target:"galaxy")
upload_dsym_to_bugly(
file_path: "./App/Release/galaxy.app.dSYM.zip",
app_key: "ce23936f-3625-4452-92d9-31551858ae02",
app_id: "5dc2acc53e",
bundle_id: "com.intelligence.galaxy",
version: "#{version}.#{build_num}",
raise_if_error: false
)
end
# 打adhoc包 执行命令 fastlane galaxyTest
lane :galaxyTest do
# add actions here: https://docs.fastlane.tools/actions
......@@ -65,6 +96,9 @@ platform :ios do
# 蒲公英 API Key
api_key: "#{adhoc_pgyer_api_key}"
)
upload_adhoc_symbols
end
......@@ -120,5 +154,6 @@ platform :ios do
# 蒲公英 API Key
api_key: "#{release_pgyer_api_key}"
)
upload_release_symbols
end
end
\ No newline at end of file
......@@ -3,3 +3,6 @@
# Ensure this file is checked in to source control!
gem 'fastlane-plugin-pgyer'
gem 'fastlane-plugin-upload_dsym_to_bugly'
gem 'fastlane-plugin-bugly'
gem 'fastlane-plugin-versioning'
......@@ -15,13 +15,29 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
## iOS
### ios upload_adhoc_symbols
```sh
[bundle exec] fastlane ios upload_adhoc_symbols
```
Description of what the lane does
### ios upload_release_symbols
```sh
[bundle exec] fastlane ios upload_release_symbols
```
### ios galaxyTest
```sh
[bundle exec] fastlane ios galaxyTest
```
Description of what the lane does
### ios galaxyRelease
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment