It's all about the answers!

Ask a question

Viewing logs of running builds


Philip McCormick (122) | asked Nov 27 '08, 8:32 a.m.
Hi,

Is there anyway to view the build log of a running build? I can view the log easily enough when the build has completed, but some of our builds take a very long time and being able to view the log during the build would be very useful.

Thanks

5 answers



permanent link
Colin Thorne (22421619) | answered Dec 01 '08, 8:20 a.m.
I am also interested in the answer to this. I can add lots of build activity logging to my build but it doesn't beat the ability to see the log while the build is running on my build machine.

So is it possible?

permanent link
Ryan Manwiller (1.3k1) | answered Dec 01 '08, 1:48 p.m.
JAZZ DEVELOPER
There is no simple way to view the live build log using an RTC client.

The best your build can do is make finer-grained status/logs/downloads
available by using the build toolkit ant tasks to publish the info as its
available. See the log and artifact publishers, as well as the
startBuildActivity task. This is the recommended way to show somewhat live
build progress in the RTC client.

One crazy idea, if you were willing to run tomcat or similar on your build
machine and dump your log to a directory visible via http.... Then, you
could publish a link to this area with the linkPublisher. Then, users could
view this (assumingly live updated) log by browsing to that web page from
the build result in RTC.

permanent link
Colin Thorne (22421619) | answered Dec 02 '08, 6:12 p.m.
Thanks Ryan, I'll play around some more with those options.

permanent link
Jay Curtiss (2122) | answered Dec 09 '08, 4:10 p.m.
Ryan, what I would really like to do is very similar to that suggested in your last post. We have a custom Ant logger that dumps log data in near real time to our build website. My concern is, I don't think I want to override the log file being kept by Jazz. How is Ant being called under the covers? Can I safely put -logger on the Ant command line in the build definition and still have Jazz get a copy of the build console? I actually prefer the output from our logger. It adds timestamps to every line.

permanent link
Ryan Manwiller (1.3k1) | answered Dec 11 '08, 9:08 p.m.
JAZZ DEVELOPER
The "full build log" that you see in the RTC build result is simply the
stdout and stderr captured by the jazz build engine when it invoked ant for
you.

The invocation of ant is straightforward and its given the ant arguments
specified in the build definition. So, RTC should not be getting in the way
if you want to specify a different logger.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.