diff --git a/fastlane/Fastfile b/fastlane/Fastfile index c4e44e65d..a10081e7a 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -6,6 +6,7 @@ before_all do ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "180" ENV["FASTLANE_XCODE_LIST_TIMEOUT"] = "180" + ENV["SENTRY_LOG_LEVEL"] = "DEBUG" end lane :alpha do @@ -183,6 +184,7 @@ lane :config_production do xcodegen(spec: "project.yml") end +$sentry_retry=0 lane :upload_dsyms_to_sentry do |options| auth_token = ENV["SENTRY_AUTH_TOKEN"] UI.user_error!("Invalid Sentry Auth token.") unless !auth_token.to_s.empty? @@ -190,13 +192,24 @@ lane :upload_dsyms_to_sentry do |options| dsym_path = options[:dsym_path] UI.user_error!("Invalid DSYM path.") unless !dsym_path.to_s.empty? - sentry_upload_dif( - auth_token: auth_token, - org_slug: 'element', - project_slug: 'element-x-ios', - url: 'https://sentry.tools.element.io/', - path: dsym_path, - ) + begin + sentry_upload_dif( + auth_token: auth_token, + org_slug: 'element', + project_slug: 'element-x-ios', + url: 'https://sentry.tools.element.io/', + path: dsym_path, + ) + rescue => exception + $sentry_retry += 1 + + if $sentry_retry <= 5 + UI.message "Sentry failed, retrying." + upload_dsyms_to_sentry options + else + raise exception + end + end end lane :release_to_github do diff --git a/fastlane/README.md b/fastlane/README.md index 8608a7ea4..bcb092d07 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -21,22 +21,6 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do -### app_store_release - -```sh -[bundle exec] fastlane app_store_release -``` - - - -### build_release - -```sh -[bundle exec] fastlane build_release -``` - - - ### unit_tests ```sh