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?
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):
thanks, I finally found what I want to do
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.