Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to deploy apk file to repository download using pipeline? when apk file is in gitignore folder

Taufik Fadlurahman Fajari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 7, 2022

I successfully deploy apk file when I try to exclude my apk file from gitignore, but can I deploy apk to repository download using pipeline?

3 answers

1 accepted

1 vote
Answer accepted
Julien Dephix
Contributor
October 7, 2022

If I understand correctly you want to be able to download the generated APK?
You can do so using artifacts. Here's how we do it with a Flutter app:

artifacts:
- build/app/outputs/flutter-apk/app-release.apk

You then get a tab at the top where you can get your file(s):

artifacts.jpg

Taufik Fadlurahman Fajari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 7, 2022

thanks, I finally found what I want to do

0 votes
Kassy Shane
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 5, 2025

Yes, you can deploy the APK using the pipeline even if it is in a gitignore folder because the pipeline generates the file during the build. Use Bitbucket Pipelines to build the project and mark the APK path as an artifact so it becomes available for download after the job finishes. There is no need to commit the APK to the repository just make sure the build script creates it in the expected folder and reference that path in the artifacts section. After the build you can download it directly from the Pipelines artifacts tab.

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 7, 2022

Hi @Taufik Fadlurahman Fajari . It's a good idea to use bitbucket-upload-file pipe.

script:
  - pipe: atlassian/bitbucket-upload-file:0.3.3
    variables:
      BITBUCKET_USERNAME: $BITBUCKET_USERNAME
      BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
      FILENAME: 'app-release.apk'

Regards, Igor

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events