Android CI using Bitbucket Pipelines and Docker Android CI using Bitbucket Pipelines and Docker docker docker

Android CI using Bitbucket Pipelines and Docker


It's a bug in their system , I report it(issue url, it's quite long) to them and they have fixed it (fix url).I have tested on my project and it successfully build.Try to build your project now and good luck.


It looks like uber/android-build-environment is not supported anymore.

I ended up using javiersantos/android-ci instead which works perfectly from scratch.

Just add the following content to bitbucket-pipeline.yml:

image: javiersantos/android-ci:27.0.3pipelines:  default:    - step:        script:          - export GRADLE_USER_HOME=`pwd`/.gradle          - chmod +x ./gradlew          - ./gradlew assembleDebug


Could you symlink your project from /opt/atlassian/bitbucketci/agent/build to /project from within the container? ln -s /opt/atlassian/bitbucketci/agent/build /project is the command you'll need.

or alternatively copy the files to the new path?

I have no experience with android development, so YMMV :)