Unable to publish artifact [Latest JAR]: the source directory

Plan runs successful, artifact created, but

"No artifacts have been found for this build result."

is the message on the Artifacts tab.

In the error log:

19-Sep-2017 09:37:45Unable to publish artifact [Latest JAR]: the source directory /var/atlassian/application-data/bamboo/xml-data/build-dir/POTCLIENTMODULE-POTCLIENTMODULEPILOT-JOB1/build/libs/release does not exist.

 The missing directory existed before running the plan, but after running it was disappeared.


How to fix this?

2 answers

1 accepted

In the plan we have one stage with one default job. The job includes two tasks, source code checkout and gradle. The source code checkout directory can be specified in the source code checkout configuration. The working directory cna be specified within the Gradle configuration. The location can be specified in the Artifact definition.  The entered path in each configurations should be the same directory to avoid the error. For default location the path is not needed to define, so the fields in each configurations can be left empty.

Hi Jozsef,

  • If you re-create the directory can you reproduce the issue?

So this is showing us the source directory doesn't exist, so was it possibly cleaned up during the build run.

A build log might help to see what happened there.  If you can re-create the issue please do so and post the log snippet from the time you reproduced the issue. 

If you cannot take a look at the logs from the time the build occurred and see if there are any clues.  If nothing jumps out at you please post the log snippet here and we'll take a look.

Cheers,

Branden

Branden thank you for the suggestion, we already checked the logs, I described the solution below, which worked for us.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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,319 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