Android CI using Bitbucket Pipelines and Docker

后端 未结 3 1970
一整个雨季
一整个雨季 2021-02-01 17:53

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

相关标签:
3条回答
  • 2021-02-01 18:04

    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.

    0 讨论(0)
  • 2021-02-01 18:09

    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 :)

    0 讨论(0)
  • 2021-02-01 18:15

    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
    
    0 讨论(0)
提交回复
热议问题