Skip to content

Instantly share code, notes, and snippets.

@kigen
Created May 3, 2017 06:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kigen/dd94504709d94836bb5ff8d5e888e021 to your computer and use it in GitHub Desktop.
Save kigen/dd94504709d94836bb5ff8d5e888e021 to your computer and use it in GitHub Desktop.
Android bitbucket pipeline config.
image: uber/android-build-environment:latest
pipelines:
default:
- step:
script:
- echo y | android update sdk --filter "extra-android-m2repository" --no-ui -a # Grab the Android Support Repo which isn't included in the container
- mkdir "${ANDROID_HOME}/licenses" || true
- echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license"
- ./gradlew assembleRelease
# Instructions to setup the next line. https://confluence.atlassian.com/bitbucket/deploy-build-artifacts-to-bitbucket-downloads-872124574.html
- curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"./app/build/outputs/apk/app-release.apk"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment