Discussion:
How to show artifacts in dashboard?
David DL
2014-06-23 23:11:12 UTC
Permalink
Hello all,



I've got a basic build loop set up using version 2.8.4 like such: (using square brackets to prevent my email client from html-izing things.)


[project name="my_project"]


[schedule]
[exec workingdir="/home/build/my_project" command="bash" args="my_cmd"/]

[/schedule]


[publishers]
[onsuccess]
[artifactspublisher dest="/home/build/build_archive/my_project" dir="/home/build/my_project" /]
[/onsuccess]
[/publishers]


[/project]



The project builds and the artifacts are moved to the correct location.


However, even though the dashboard shows the build as "success" and the "build log" tab shows the command's output, the "Artifacts" tab remains empty.


Is there some step I need to take to inform the dashboard about the build artifacts?


Thank you,

David
David DL
2014-09-05 16:18:11 UTC
Permalink
*bump*

I know that CC is not so popular anymore, but surely some else is still running it too. :-)

Can somebody confirm that the below config should work?

The problem is that for some reason I don't see any output under the "Artifacts" tab. (See: http://i.imgur.com/hxtWaLO.png )

Is there any specific configuration steps needed?

I've reduced the test case to a simple bash script, and posted it, and my config.xml snippet, here:
https://gist.github.com/ddl877/1e1335b7426c7ced13d7

Note: The "artifactspublisher" tag seems to work, because the files _do_ end up in the destination folder. Its just the web dashboard "artifacts" tab that is blank.

Thank you,
David
David DL
2014-09-05 19:31:24 UTC
Permalink
SOLVED.  

If any one else sees this:

By default it seems the dashboard expects that the artifacts folder to exist at  "${root.cruise}/artifacts"

If you set the the "dest" attribute of "artifactspublisher" to anything that is under a different folder, you must update the the "artifactsdir" attribute of dashboard's "buildloop" tag accordingly.

David


________________________________
> From: ***@outlook.com
> To: cruisecontrol-***@lists.sourceforge.net
> Date: Fri, 5 Sep 2014 12:18:11 -0400
> Subject: Re: [Cruisecontrol-user] How to show artifacts in dashboard?
>
> *bump* I know that CC is not so popular anymore, but surely some else
> is still running it too. :-) Can somebody confirm that the below
> config should work? The problem is that for some reason I don't see any
> output under the "Artifacts" tab.
> (See: http://i.imgur.com/hxtWaLO.png ) Is there any specific
> configuration steps needed? I've reduced the test case to a simple bash
> script, and posted it, and my config.xml snippet, here:
> https://gist.github.com/ddl877/1e1335b7426c7ced13d7 Note: The
> "artifactspublisher" tag seems to work, because the files _do_ end up
> in the destination folder. Its just the web dashboard "artifacts" tab
> that is blank. Thank you, David
>
> ------------------------------------------------------------------------------
> Slashdot TV. Video for Nerds. Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________ Cruisecontrol-user
> mailing list Cruisecontrol-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
Continue reading on narkive:
Loading...