Bamboo build stuck on "Waiting to be built..." and Cloning into 'Common'

It was password issue for submodule which is fixed.
Now I'm getting this error

Failure in artifact preparation phase during processing of: 
Subscription for Shared artifact: 
[bla, pattern: [**] anchored at: [deploy_artifact], destination: [] –  

Log message

"C:\bamboo-home\artifacts\XXX\shared\build-xxxx\package is not a directory" 

You can look at this thread:

Did you created a new deployment release after building your plan?
Single release always relates to specific build.
If you want to use updated artifact you need to create a new release.

You can also check copy pattern, as suggested here.


(Original answer)

Bamboo supports submodules since 3.4 and BAM 8106

If that support is somehow faulty, you can try a workaround, adding a builder task like a custom command executable as a script with:

#!/bin/bash
BUILDDIR=${bamboo.build.working.directory}
cd $BUILDDIR
git submodule update --init

(unselect the "Use Submodule" option in the Advanced Option)

http://atlassian.wpengine.netdna-cdn.com/wp-content/uploads/bamboo-shared-repository-600x401.jpg

That would allow you to check if submodules are actually the issue here.