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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

Bamboo build failing on copy of shared artifact

I have a build plan with the following setup:

1. Checkout Stage

* Checkout Job - Pull down source

Produces "Source" artifact ( location: <empty>, pattern: **/*.* )

2. Build Stage

* Debug Job (Depends on artifact "Source" - dest dir: "root of working directory")

* Release Job (Depends on artifact "Source" - dest dir: "root of working directory")

However every time a build is triggered, I get the following error from both the Debug and Release jobs:

Build KEST-MASTER-DBG-6 started building on agent Default Agent

Build working directory is D:\Atlassian\Home\Bamboo\xml-data\build-dir\KEST-MASTER-DBG

Executing build KEST-MASTER-DBG-6

Preparing artifact for use: Source

Failed to copy build artifact from [D:\Atlassian\Home\Bamboo\artifacts\KEST-MASTER\shared\build-00006\Source] to [D:\Atlassian\Home\Bamboo\xml-data\build-dir\KEST-MASTER-DBG]

Failure in artifact preparation phase during processing of: Subscription for Shared artifact: [Source], pattern: [**/*.*], destination: []

1 error(s) found when performing pre-build actions.

Running on server: post build plugin 'NCover Results Collector'

Running on server: post build plugin 'Clover Delta Calculator'

Running on server: post build plugin 'Build Hanging Detection Configuration'

Running on server: post build plugin 'Maven Dependencies Postprocessor'

All post build plugins have finished

Generating build results summary...

Saving build results to disk...

Indexing build results...

Finished building KEST-MASTER-DBG-6.

If I choose to "Re-run failed jobs" it then works.

What's doing??

1 answer

1 accepted

2 votes
Answer accepted

I managed to fix this my ticking the box to clean the working directory after completing this job...

Hi @Daniel Turner1 - Can you please give more details. Did you check the checkbox "clean the working directory " for  job that produces the artifact or , job that is dependent on the artifact ( and fails ), or both . 

In my Bamboo agent log I see following error 

2021-01-15 13:42:07,532 ERROR [2-BAM::sles12sp3-agent4::Agent:pool-5-thread-1] [BambooArtifactHttpTransport]
org.apache.http.TruncatedChunkException: Truncated chunk (expected size: 8,192; actual size: 4,202)

Do you see similar messages in your Bamboo agent log ? 

Since these seems to affect Bamboo server to remote agent communication issue and my task that was dependent on the artifact was fairly simple task that could run on the local agent for now I used a workaround

I changed requirements of that task dependent on artifact to run locally on Bamboo default agent 

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events