Jenkins Team Concert Plugin - returning logs to RTC
We are using the Team Concert plugin Version 1.0.12, RTC Build Toolkit 4.0.3, RTC server 4.0.6.
We've observed that after running a Jenkins job that is is initiated from RTC, the log is available as a link in the RTC build result. If a job is initiated by Jenkins polling the SCM the log is not available from RTC. I'd like to have the logs available in RTC and was considering what the best options for doing this were. It looks as though part of the answer might be here https://jazz.net/forum/questions/62642/add-log-to-build-result using the Java API. As we already use this (to get work items that were changed in the build), this would probably be the easiest way for us.
Before going to much further - I wondered if there was a reason why the logs are not added automatically? Have I missed something and it's much more difficult than I think?
We've observed that after running a Jenkins job that is is initiated from RTC, the log is available as a link in the RTC build result. If a job is initiated by Jenkins polling the SCM the log is not available from RTC. I'd like to have the logs available in RTC and was considering what the best options for doing this were. It looks as though part of the answer might be here https://jazz.net/forum/questions/62642/add-log-to-build-result using the Java API. As we already use this (to get work items that were changed in the build), this would probably be the easiest way for us.
Before going to much further - I wondered if there was a reason why the logs are not added automatically? Have I missed something and it's much more difficult than I think?
One answer
The Jenkins plugin deliberately does not to attach the full Jenkins log to the build result. Instead it publishes a link to the log. The log can be quite large and it takes time to upload (plus takes space) to RTC. Instead it can be accessed from the link.
The other reason is timing. We can publish the link to the RTC build result when the build starts. Then you can open the link and see the info being written to the log as the build progresses. We think this is a really nice feature of Jenkins (seeing the log during the build) especially with long running builds where you want to see the progress. If we published the log in the build, it can't be done until the build completes.
If you really really want the full log in the build result, I suggest opening an enhancement request. The plugin could have an option for that. It would sense that the plugin do it as part of the termination of the build (when all the log contents have been finalized).
Comments
sam detweiler
May 28 '14, 10:48 a.m.Zoe Slattery
May 28 '14, 12:08 p.m.sam detweiler
May 28 '14, 12:15 p.m.Zoe Slattery
May 28 '14, 12:25 p.m.sam detweiler
May 28 '14, 12:41 p.m.Zoe Slattery
May 28 '14, 12:45 p.m.