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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,317
Community Members
 
Community Events
176
Community Groups

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
TAGS

Atlassian Community Events