Error sharing artifact between projects.

This question is in reference to Atlassian Documentation: Sharing artifacts

I am having some issues when trying to get an artifact from a different plan. The scenario is the following:

  • Plan A has 2 stages: build and test:
    • Build passes successfully and publishes several artifacts.
    • Test fails at some point. As a result Plan A fails.
  • Plan B runs after plan A finishes. the first job in the first stage of plan B is the "Artifact download" one, which tries to download an artifact from plan A (from the build step). The error shown is the following:
Preparing to download plan result CORE-RHEL5X32-7 artifact: Shared artifact: [blah_libraries], pattern: [blah/lib/i86Linux2.6gcc4.1.1/*]
java.lang.RuntimeException: Unexpected HTTP status code: HTTP/1.1 500 Internal Server Error
Unable to download artifact Shared artifact: [blah_libraries], pattern: [blah/lib/i86Linux2.6gcc4.1.1/*]

I double checked that the artifact is there and I can access and copy it using scp to the bamboo server from the bamboo agent.

Is it a requirement that the whole plan (A in this case) passes? Am I not understanding the behavior correctly?

1 answer

0 votes

IIRC artifact downloader task expects that artifacts come from successful result. If tests fail in stage 2, downloader task will not take those artifacts into consideration, as they are considered "broken".

That being said, server responding with 500 Internal Server Error is not a normal behaviour. I suggest you open a support request at Atlassian Support. Please include server logs if you decide to do so.

I am experiencing a similar error (deployment plan stops with a 500 internal server error), but my plan is being triggered after a successful build plan. Has Javier's issue been solved?

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,077 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot