
What the purpose for specific steps here? Here is my pipeline adding extra steps for my develop branch #. # Add Android SDK license in a default fileĮcho "8933bad161af4178b1185d1a37fbf41ea5269c55" > "$/licenses/android-sdk-license" On my side, I also like having separated scripts that can be reused, so I created a build.sh file in my repo.īe sure that your script can be executed by giving the right permissions. Bitbucket Pipeline documentation includes many commands to customize your build, including one to specify branches. What if I want to do specific steps for a branch? Here I build a debug APK using Gradle wrapper. Then by default, for any branches, it will execute commands. Script: # Modify the commands below to build your repository.įirst, I specify the image that is going to be used to build the app. Image: uber/android-build-environment:latest # You can specify a custom docker image from Docker Hub as your build environment. Next step will be to set up your YAML file. It would create a lighter image to use and improve how hast your pipeline takes time. If you are familiar with Docker, I would recommend to create you own image instead, you might not need everything that Uber included in their image. To simplify it, Uber dev team created one for this purpose that you can use here.


It should include your Android build environment to be able to compile it (Gradle, …).

You’ll also need a Docker image to use to build your app. It will automatically create a YAML file to start with under your master branch. To start using Bitbucket Pipeline, you simply need to go to your repository, and under the Pipeline menu enable it. Note: HockeyApp now integrated into AppCenter, hence this post might not be relevant anymore.

It’s based on Docker container technology and require only a YAML file to start using it. If you missed it, Bitbucket Pipeline is a continuous integration service that Atlassian integrated in their git solution Bitbucket last year. Let’s see how quick it is to build an Android app with Bitbucket Pipeline and deliver it with App Center app (ex HockeyApp). Configuring a continuous integration can be tricky for mobile apps.
