Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Artifact sharing from a failed build plan to a child plan


I am using Bamboo's 'Artifact Downloader' plugin to share artifacts from a parent plan to a child plan. I have configured the child plan to run even if the parent plan failed. I notice that when the child plan is running, the 'Artifact Downloader' is downloading the artifacts from the last successful build of the parent plan. How do I make it download the artifact from the latest build (instead of the last successful build) of the parent plan?

1 answer

Hi @headerfile

This happens by design. In most cases, it won't make sense to get an artifact from a failed build. Depending on the failure the artifact won't even be published.

I do think the simpler way is to make sure your prior build plan succeeds before trying to run the plan that will consume the artifact. You could change your trigger by setting the option Only run Build if other Plans are currently passing and providing the correct plan key.

If you still want to try downloading the artifact from the latest build even if it is failed you may try it programmatically. For that you would need:

  1. The PLAN-KEY from which the artifact is downloaded
    ⚠️ Please notice that depending on the plan branch the PLAN-KEY will be different
  2. The BUILD-NUMBER of the plan you want the artifact
    You could discover the latest one using something like:
    BUILD_NUMBER=`curl -u user:password -X GET 'http://localhost:8085/bamboo/rest/api/latest/result/PROP-PLEN-latest' | awk -v FS="(resultNumber)" '{print $2}' | tr -d '<>/'`
  3. The artifact name
  4. The artifact file
  5. Download the artifact using the process from this other community question: Dowload Plan Artifacts

I hope it helps.

Suggest an answer

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

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

223 views 4 6
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