It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 votes
Answer accepted

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]

1 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 votes

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
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

692 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you