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?
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:
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
please, create an Artifact as per following:
Screen Shot 2015-03-16 at 6.12.57 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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?.
The build log details is attached herewith for your reference
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.