Re: Build-Log in Dashboard

Joe Schmetzer <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi All,

I had the same problem earlier this year. I wanted to view the build
output in a tab on the dashboard.

Looking at the dashboard configuration, I spotted that there was
already code to do so. It's called "AntOutputWidget". It effectively
transforms all the build output in the log into nicely formatted html
on a build output tab. However, there were three problems:
* but it was disabled by default
* it was a "deprecated" widget plugin
* it didn't work (there were a few bugs, which is why it was disabled, I guess)

Luckily, I was able to find a fix already created by someone else, and
submit a patch to the dev list. The issue can be found at
http://jira.public.thoughtworks.org/browse/CC-831 , and I wrote on my
blog about what I did at
http://www.exubero.com/joe/2009/03/a-small-cruisecontrol-fix-and-a-critique-of-spring/

You may be interested to know, JTF commented that the widget plugin
wasn't really deprecated. I updated my patch to remove the
"deprecated" warning from the documentation, as well.

The patch is still not been address. If any committer wants to have a
look at this, I'd appreciate it (it will mean that I don't have to
patch the instance of CC I use any more)

Cheers,
Joe

2009/8/18 Stefan Pammer <[email protected]>
>
> Hi
>
> I have the same question. I already tried to find a solution but I didn't succeed in diplaying the build results.
> So if anyboday has got a solution, please help us. ;)
>
> All the best,
> Stefan
>
> ________________________________
> Von: Samuel Bernet <[email protected]>
> An: [email protected]
> Gesendet: Montag, den 17. August 2009, 17:32:54 Uhr
> Betreff: [Cruisecontrol-user] Build-Log in Dashboard
>
> Hi,
>
> I've seen this question raised several times in the mailing list and
> other places but never found a definitive answer:
>
> In the dashboard on the build detail tab of a build there is a "build
> log" tab with a link to download the build log in raw XML format.
> There's no other content on this page (dashboard - NOT the classic
> reporting application).
>
> I'd like to see the transformed build log (not the XML) inline on this
> tab. Is this possible at all?
>
> Usually the link
> http://confluence.public.thoughtworks.org/display/CC/CustomiseJSPReporti
> ng comes up as a response, but AFAIK this does not relate to the
> dashboard but to the old reporting application only.
>
> What I did for now (but deem unsatisfactory) is adding a "View log" link
> to this panel, redirecting to the build results page of the old
> reporting application. This is my current content of the
> webapps\dashboard\WEB-INF\vm\build_detail\build_detail_partial_log.vm
> Template:
>
> <div id="build_log" class="widget"  $log_extra_attrs>
>     <h2>Build Log</h2>
>     <span class="logfile"><a
> href="$req.getContextPath()/tab/build/download/log/$projectName/$logfile
> ">Download log</a></span>
>     <p/>
>     <span class="logfile"><a
> href="$req.getContextPath()/../cruisecontrol
> /buildresults/${projectName}">View log</a></span>
> </div>
>
> Maybe this workaround can help other people, if there's really no
> solution to this problem...
>
> My Setup:
> CC 2.8.2 on Windows Server 2008 (Standard Edition, SP1, 64-Bit) without
> Jetty (Web-Apps running in Tomcat 5.5.17).
>
> Best regards
>
> Samuel Bernet
> MSc ETH in Software Engineering
> [email protected]
> +41 (0)44 883 35 45
>
> K&W Software AG
> Rosenbergstrasse 1
> 8304 Wallisellen
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.