Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using artifacts in s3 deploy pipes

I have the following pipeline that I am struggling with


image: mingc/android-build-box:latest

- step:
- gradle
- chmod +x gradlew
- ./gradlew assembleDebug
- app/build/outputs/apk/debug/*.apk
- step:
name: Build and Sign
- gradle
- chmod +x gradlew
- ./gradlew clean assembleRelease
- app/build/outputs/apk/release/*.apk
- step:
name: Deploy to AWS
deployment: Production
- pipe: atlassian/aws-s3-deploy:0.2.4
AWS_ACCESS_KEY_ID: 'mykeyid'
S3_BUCKET: 'mybucket'
LOCAL_PATH: '????'


Whatever I try as the local path for my artifact results in a 'local path must be a directory error'


How can I deploy my apk to s3? 

1 answer

1 accepted

1 vote
Answer accepted

Hi @dave_grix_pavers_co_uk

Thank you for adding the bitbucket-pipelines.yml file.

Assuming the release > Build and Sign step is correctly creating the files at <BITBUCKET_CLONE_DIR>/app/build/outputs/apk/release/ and the apk files are published, you should have them in the same path on release > Deploy to AWS step.

This should work for your LOCAL_PATH variable:

LOCAL_PATH: './app/build/outputs/apk/release'


If that does not work for you, please add the following line in your script section for the release > Deploy to AWS step:

 find ./app/build/outputs/apk/release

and check if you see the apk files there before the pipe.

Like Daniel Santos likes this

You are welcome!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

3,761 views 64 20
Read article

Community Events

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

Events near you