It it possible to add a log file to an existing build result using logPublisher task?
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.
Accepted answer
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).
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.