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

How can I download artifacts from failed builds?

I am using shared artifacts and then the task Download Artifact -- but it only downloads an artifact from the last successful build.

I need the artifact from the most recent build regardless of whether it passed or failed.

1 answer

0 votes

Hi @Benjamin Wilcox

That is not the way Bamboo was designed to work and this is why you will need to do some extra work in order to make it happen.

I would try this:

  1. Remove the task download artifact
  2. Add a script instead, with commands to perform these 2 steps:
    1. Find what is the last build from the plan you are trying to get the artifact from
      The information you need is returned in this REST API
      GET <Bamboo_URL>/rest/api/latest/result/<PLAN_KEY>
    2. Download the artifact using this REST API
      GET <Bamboo_URL>/browse/<PLAN_KEY>-<BUILD_NUMBER>/artifact/shared/<ARTIFACT_NAME>/<ARTIFACT_FILE>

I would rather prefer fixing the build and rerunning the same one to make sure the artifacts will be exactly the same and the build is now passing.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

663 views 2 7
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