Error sharing artifact between projects.

Javier Morales Castro November 23, 2015

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
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 24, 2015

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.

Aaron Acosta December 22, 2015

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 Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events