Hello guys, first time I ask a question here... I'm setting a pipeline for my android project where I would like to build and deploy ( so having a debug.apk ) my android app.
At this time I'm able to build the apk but can't find any way to deploy it, could someone help me?
This is my code right now:
- export GRADLE_USER_HOME=`pwd`/.gradle
- chmod +x ./gradlew
- ./gradlew assembleDebug
the ./gradlew assembleDebug command will build the APK and put it in the build folder for your app. I think by default this build folder will be somewhere like
If you run ./gradlew assembleDebug on your local machine, then check around that location you should see the apk. It will be in the same relative location when it is built using pipelines.
The build wont actually commit the artefacts from the build to your repository that is why you can't see them in the repository (and you don't want to do this). What you want to do is add a command after the assemble command to the build script that will get the APK that you just built which will be around that location I posted above, and send that to slack using the API you have.
If for example you added:
as the last line of you script above, it should print out something like app-debug.apk
(the location may be slightly different so run ./gradlew assembleDebug on your local machine and have a look around there for the apk to get the exact location)
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events