Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

It it possible to add a log file to an existing build result using logPublisher task?

Hello,

We are using JBE and logs are almost always published automatically to the build results.
Occasionally, the logs are not published (in spite of build finishing successfully).
I found the build log in TeamConcertBuild\buildsystem\buildengine\eclipse directory.

I cannot attach this log to the build result, though. The logs tab is missing.
Is there any way to attach the file or unlock logs tab to a specific build result?
Can it be done by using a dummy build.xml with only logpublisher task with proper parameters?
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m6/topic/com.ibm.team.build.doc/topics/r_logpublisher.html.

0 votes


Accepted answer

Permanent link
We have seen this kind of behavior with RTC 4.0.2 

For us at least this was sporadic. Opening a PMR with IBM would help

We use "LogPublisher" for attaching logs to the "Logs" tab. Just that in our case the log tab is visible
Adam Wereszczynski selected this answer as the correct answer

0 votes

Comments

Thanks, problem is sporadic here as well.
We'll investigate to find the root cause, but I wonder if it's possible to fix the existing build results using the ANT task.

Another point could be enabling "verbose" mode on your JBE and check the log output. We tried all these but in vain as the problem was sporadic

If you see this again, check the contents of the build-*.log file (in the current working directory of JBE) for any details about the failure.  Also check the console output from JBE if you can (e.g. redirect it to a file when starting JBE).  


It sounds like when the main phase of the build (e.g. running Ant/Maven) was completed, the RTC server was unresponsive and so couldn't publish the log, or close off the build, or both.  We've just determined that it's possible for the build to get marked as completed with OK (not ERROR) status if it's just the log publishing that failed, but not the build completion, i.e. leaving the build's status as a "false positive".  See Build can complete as green if log publishing fails, even if main part of build failed (310686) for details.

1 vote

But to confirm Karthik's answer, logPublisher and the other publishing tasks can run at any time. There are no constraints on the state of the build lifecycle.  The start/completeBuildActivity tasks can only run when the build is in progress though.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 562
× 63
× 15

Question asked: Apr 02 '14, 5:04 a.m.

Question was seen: 5,560 times

Last updated: Apr 03 '14, 6:26 p.m.

Confirmation Cancel Confirm