Currently, my repository is being built through Bitbucket pipelines, and archiving is configured in our YAML file as follows:
artifacts:
- linux/**
- win32/**
In this context, I'm looking to download artifacts from the most recent successful build using the REST API. The intention is to call this REST API through a Jenkins job.
Could you please advise on how to solve this problem?
Hi 홍창기,
Unfortunately this is not possible as there is no API endpoint for artifacts. We have a feature request raised with our development team that you can track by Watching it for future updates:
The suggested workaround is detailed in the ticket above and suggests making use of the bitbucket-upload-file pipe to place the artifact in the repository Downloads section and then retrieving it from there using the /2.0/repositories endpoint.
Cheers!
- Ben (Bitbucket Cloud Support)
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.