Unable to publish artifact

I had define a artifact and make it shared. The build result is successful but I am unable to get artifact.

the definition details is like: Have I missed any thing else that is causing the problem?

 

If the artifact is shared, the name must be unique within the plan
Specify the directory (relative path) to find your artifact. e.g. target
Make the artifact available to be used in other builds and deployments.
If you subscribe to an unavailable shared artifact the build will fail.

4 answers

1 accepted

0 vote

Hello Aakash,

The best way on helping you would be if you provide the build log with the Script task included in it, so I could have a better understanding to the build you are running and the artifact you are attempting on generate. Since the same wasn't provided, I will suggest you on:

  1. please, create a new Plan in Bamboo (i.e.: Artifact)
  2. please, add a Script task

    echo "hello" >> greeting.txt
     
    mkdir foo
    echo "bar" >> foo/bar.txt

    Screen Shot 2015-03-16 at 6.14.21 PM.png

  3. please, create an Artifact as per following:

    Screen Shot 2015-03-16 at 6.12.57 PM.png

     

  4. run your build
    Screen Shot 2015-03-16 at 6.15.28 PM.png

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

how to resolve these issues >Unable to download artifact Shared artifact: [WAR artifact], pattern: [**/*.war] anchored at: [target] >Unable to publish artifact [WAR artifact]

0 vote

Hello Aakash,

Thank you for your question.

Based on the configuration above, Bamboo will attempt on generating the artifact "Latest War" by trying to find "*.war" located under your Build Working Directory/Target.

If you open the build log generated from your build, the 2nd line will give you the location to your Build Working Directory. Please, navigate to that location and make sure the ".war" file exists under the location given.

bamboo.buildLog.png

Please, add a new Script task as the latest to be run in your Plan configuration with the following command:

# on Linux
ls -lR

Please, run your build and attach it to this inquire so we can have a better understanding to what you are attempting on doing, please.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

06-Oct-2015 15:06:22 -rw-r--r-- 1 root root 7427 Oct 6 14:58 stere.js 06-Oct-2015 15:06:22 -rw-r--r-- 1 root root 5497 Oct 6 14:58 tmerc.js 06-Oct-2015 15:06:22 -rw-r--r-- 1 root root 1488 Oct 6 14:58 utm.js 06-Oct-2015 15:06:22 -rw-r--r-- 1 root root 4451 Oct 6 14:58 vandg.js 06-Oct-2015 15:06:22 06-Oct-2015 15:06:22 ./otp-analyst-client/src/main/webapp/js/lib/proj4js-1.0.3/lib/util: 06-Oct-2015 15:06:22 total 36 06-Oct-2015 15:06:22 -rw-r--r-- 1 root root 33476 Oct 6 14:58 MGRS.js 06-Oct-2015 15:06:22 06-Oct-2015 15:06:22 ./otp-analyst-client/src/main/webapp/js/otp: 06-Oct-2015 15:06:22 total 20 06-Oct-2015 15:06:22 -rw-r--r-- 1 root root 13649 Oct 6 14:58 client.js 06-Oct-2015 15:06:22 -rw-r--r-- 1 root root 3798 Oct 6 14:58 isochrone.js 06-Oct-2015 15:06:22 06-Oct-2015 15:06:22 ./otp-analyst-client/src/main/webapp/META-INF: 06-Oct-2015 15:06:22 total 0 06-Oct-2015 15:06:22 -rw-r--r-- 1 root root 0 Oct 6 14:58 MANIFEST.MF 06-Oct-2015 15:06:22 06-Oct-2015 15:06:22 ./otp-analyst-client/src/main/webapp/WEB-INF: 06-Oct-2015 15:06:22 total 8 06-Oct-2015 15:06:22 -rw-r--r-- 1 root root 215 Oct 6 14:58 web.xml 06-Oct-2015 15:06:22 -rw-r--r-- 1 root root 518 Oct 6 14:58 wro.xml 06-Oct-2015 15:06:22 /home/addteq/bamboo/bamboo-home/artifacts/OTP-DEV/shared/build-00031/WAR-artifact is not a directory 06-Oct-2015 15:06:22 Unable to download artifact Shared artifact: [WAR artifact], pattern: [**/*.war] anchored at: [target] 06-Oct-2015 15:06:22 Unable to publish artifact [WAR artifact]: the source directory /home/addteq/bamboo/bamboo-home/xml-data/build-dir/OTP-DEV-QADEP/target does not exist.

Thank you very much Rafael for the prompt response.I could find that war file in the path you mentioned but my question is why it is displaying the message unable to publish the artifact in the build log.

Also inside default job under Artifact section it is not displaying any size of artifact in fact it should display,I guess?.

  Build:#12 was successful 

Artifacts

No artifacts have been found for this build result

The build log details is attached herewith for your reference

0 vote

Hello Aakash,

I would kindly ask you to accept this answer even though the following has been already accepted so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,570 views 0 6
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