Create
cancel
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

Android CI Build as Artifact

Hello,

I am trying to build my android project through the bitbucket pipeline and use this built APK as an artifact inside another step to run my UI Automation tests on. Can anyone please inform me of the normal process or any useful documentation.

Thank you.

1 answer

0 votes
Mark C Atlassian Team Sep 16, 2021

Hi @tarek_o

Thank you for reaching out to the community.

I believe that's already the normal process on how you can pass the built APK in another step on Pipelines using Artifacts.
In this process, you can also use multi-steps to pass your built artifact from one step to another:
Sample multi-steps:

pipelines:
  default:
    - step:
        name: Build
        script:
          - #Your commands here
        artifacts:
          - app/build/outputs/**
    - step:
        name: UI Test
        script:
          - #Your commands here

You can also check out this blog that might help.

Hope it helps and let me know if you have further questions.

Regards,
Mark C

Thank you @Mark C for your reply!
My previous issue was with the directory of where the Artifacts are saved. With a lot of debugging and testing, I was able to find the Artifacts directory in the next step.

Regards,

Tarek_O

Mark C Atlassian Team Sep 16, 2021

Glad to know you're able to find the Artifacts directory in the next step.

Regards,
Mark C

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

123 views 2 4
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