diff --git a/Jenkinsfile b/Jenkinsfile index abb3b11..27ba812 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -179,6 +179,23 @@ on: 'android', ] } + +lazyStage { + name = 'beta_crash' + onlyif = (! deployBranches.contains(lazyConfig['branch']) && lazyConfig['branch'] != workingBranch && lazyConfig.env.RELEASE ) + input = 'Promote to Crashlytics Beta users?' + tasks = [ + pre: { + unarchive(mapping:["${buildDir}/" : '.']) + }, + run: { + if ( !lazyConfig.env.DRYRUN ) { + fastLane('android', 'beta_crash', "fl_branch:\"${lazyConfig['branch']}\"") + } + }, + on: 'android', + ] +} /* lazyStage { name = 'production' diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 0597970..9cdb2fb 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -131,6 +131,15 @@ ) end + desc "Submit a new build to Crashlytics Beta" + lane :beta_crash do |options| + gradle(task: "assembleRelease") + crashlytics( + api_token: "b439e4099424e0f33cdab4e7b689b60c4bc3a5d2", + build_secret: "ecffdd52c995054f79161c3570ed769f2bacf2dd3082e2aba7489b147c29ce7d" + ) + end + desc "Deploy a new version to the Google Play" lane :alpha do |options| supply(