Description
We shouldn't generate empty artifact links when there are no artifacts for the build
Bamboo shows an artifact link; clicking on that link takes to a page that shows the artifact's name.
Steps to reproduce
Configure a plan with a script (that just prints something and creates a directory "target").
Then, add an artifact (shared or not) something like: location = target, pattern = */.zip.
11-Nov-2011 13:59:36 Failing task since return code was 1 while expected 0 11-Nov-2011 13:59:36 Finished task 'Script' 11-Nov-2011 13:59:36 Running post build plugin 'NCover Results Collector' 11-Nov-2011 13:59:36 Running post build plugin 'Clover Results Collector' 11-Nov-2011 13:59:36 Running post build plugin 'Artifact Copier' 11-Nov-2011 13:59:36 Publishing an artifact: Artifact-BSP-5803 11-Nov-2011 13:59:36 Finished publishing of artifact Job artifact: [Artifact-BSP-5803], pattern: [**/*.zip] anchored at[target] in 0s 11-Nov-2011 13:59:36 Running post build plugin 'Cleanup Build Processor' 11-Nov-2011 13:59:36 Finalising the build...