Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to publish artifact

Aakash Basnet March 16, 2015

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
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 16, 2015

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

Swetha Bammidi October 5, 2015

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
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 16, 2015

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

Swetha Bammidi October 5, 2015

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.

0 votes
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 18, 2015

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

0 votes
Aakash Basnet March 16, 2015

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

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events