Continuous delivery using Bitbucket Pipelines and Beta by Crashlytics

Dinorah Tovar
Knowing Android
Published in
2 min readJan 12, 2019

Deliver you app for testing using Pipeline

Continuous delivery with Bitbucket Pipelines

Probably you have heard about Bitbucket Pipelines, made especially for building and testing automatization, this an incredible tool for continuous delivery and can help you to make an easy deployment for QA. But, even after months, I haven’t found any good tutorial to make the complete setup and release for Crashlytics, so here it is:

First, you have to enable Bitbucket pipelines on your repository, make sure to have permissions. Bitbucket will ask you to create a YML file for setup. Make sure to select the Docker version, but no worries if you don’t cause you can specify a custom docker image from Docker Hub as your build environment.

Let’s analyze this file, we have an image for Java, also, we select the branch that we select that is going to create the deployments in our case “deployment”, on script part we will download the necessary info from Android to use on Docker, with the build tools of the API 28, this means that our project has a target of Android Pie. Also, we want to test our Unit Tests inside our code.

To release a version for Crashlytics we need to make assembleDebug with a crashlyticsUploadDistributionDebug. You probably are thinking, but how do I made the setup for a special group of testers that I have on Fabric, you only need to add this to your Gradle app module:

debug {
minifyEnabled false
debuggable true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
ext.betaDistributionGroupAliases = "your-testers-group-name"
ext.betaDistributionNotifications = true
}

And you are ready to go, do a push to your selected branch and see the magic happens

If you need help, I'm always happy to help, you can found me here:
Medium: https://medium.com/@dinorahto
StackOverflow: https://stackoverflow.com/users/4613259/dinorah-tovar

Happy Coding! 👩🏻‍💻

--

--

Dinorah Tovar
Knowing Android

Google Developer Expert on Android | Doing Kotlin | Making Software 24/7 | Kotlin Multiplatform | She/Her | Opinions are my own, and not my employer