How do I share artifacts between jobs without publishing to the server?

Matt G September 2, 2015

I have several jobs within a build plan, some of which are currently defined in separate stages. After reading the documentation, it appears the only way to share the artifacts between jobs in different stages is to mark them as Shared in the Artifacts tab. However, our artifacts are very large, so publishing them to the bamboo server from the agent takes several minutes. Are there any features presently or in development to allow the sharing of artifacts locally on the build agent without publishing/uploading to the bamboo server? I realize this might restrict the plan to a single agent.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Sergey Podobry _Stellarity Software_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 2, 2015

AFAIK currently this is not possible. Jobs can be run in parallel on many agents. That's why artifacts must be uploaded to the server and downloaded back to agents.

If your build is run only on one agent you can use its filesystem directly to avoid copying.

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 2, 2015

Have you considered using the script task to store it in a temporary location and reading it from there in the next stage? This will keep the artifact in the agent itself.

Matt G September 2, 2015

Sorry, I should've been more clear - that's what we're currently doing. We have a temp folder It feels like a bit of a "hack", though, since the best practices only mention the sharing of artifacts, which get published to the server.

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 2, 2015

Hacks, best practices.. there is a bit of gray area in between ;)

TAGS
AUG Leaders

Atlassian Community Events