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

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

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,096 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