Friday, August 17, 2018

Configuring bitbucket pipeline for Android

Bitbucket pipeline can be configured for an Android project using following steps.


Step 1: Open "Pipelines" from left side of your repository page on bitbucket.
Step 2: Select "Java (Gradle)" from "Choose a language template" on new page opened.
Step 3: Select "commit" right bottom corner. Pic shown below:

Previous step will add "bitbucket-pipelines.yml" in the repository.
Step 4: Change file contents to

Step 5: Replace license hash with hash stored in your android sdk's license folder. In my case license file is stored at /home/swapnil/Android/Sdk/licenses. Copy the hash stored in "android-sdk-license" file and paste it in place of "d56f5187479451eabf01fb78af6dfcb131a6481e". This step will ensure that, when pipeline downloads the sdk, its licenses will be automatically accepted and build will not fail. Apk can be downloaded from artefacts tab shown in pipeline.

Android aar deployment in Maven - 2022

Introduction If you are working on android library project, you might be wondering how to publish it on Maven like this . Earl...