Publishing artifacts not working

I've been struggling to get artifact publishing working, so I've configured the most simple test case that I can come up with and still getting no results.

The plan has a single job in it, with the following script:

if [ ! -d "artifacts" ] ; then
  mkdir artifacts
fi
echo "This is a test" > artifacts/test1.txt
echo "This is a different test" > test2.txt

The artifact definition for this job is the following:

Name: Retrieve test file

Location:

Copy pattern: *.txt

(I've also tried location = 'artifacts', I've tried copy pattern = '*', '**/*.txt', 'test2.txt', 'artifacts/test1.txt' and other variations)

I've verified, via SSH, that both files are created and are both readable by all users.

In each case, the result has been the log message 'Unable to publish artifact'.

Am I doing something wrong or is this a bug in Bamboo?

 

1 answer

1 accepted

0 vote

Hello @Davo Smith,

I just tried your scenario on Bamboo 5.9.9 and it works as expected. If you leave Location empty and copy pattern is *.txt then Bamboo publishes only text2.txt file.

You can find your artifacts at Artifacts tab of Build resultartifacts_retrieve.png

If you have issues with Bamboo, please create request at support.atlassian.com and our Support Engineers will be glad to help you

 

Hi Alexey - thanks for getting back to me.

As it happens, I opened a support ticket a couple of days after I posted here ( https://support.atlassian.com/servicedesk/customer/portal/23/JST-179283 ) and it turned out to be a file permissions bug in the instance, which one of the support engineers was able to fix for me.

I'll mark your answer as correct as contacting support was the right answer.

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