I am trying to set up Continuous Integration (CI) in Bitbucket Pipelines for Android.
I have created a sample blank activity using Android Studio 2.1.1.
With Pi
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.
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 :)
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.3
pipelines:
default:
- step:
script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- chmod +x ./gradlew
- ./gradlew assembleDebug