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

How to Download Artifacts of the Most Recent Successful Build Using REST API

홍창기 March 14, 2024

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?

1 answer

1 vote
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 17, 2024

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)

Suggest an answer

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

Atlassian Community Events