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?
showing 5 of 6
show 1 more comments
|
Comments
I don't know for sure, but I think its an indication of who's in charge.. RTC or agent requested build
I've written an extension for Jenkins and I know I check to see if a build result was created already, if not my extension exits.
I think the build result is created whatever happens. It is visible in RTC, it just has no log attached to it. (See screen shot below)
understand.. at the time the build job starts in Jenkins the buildresult record is not yet created.
So, are you saying that if the build is initiated by RTC a result record is created at the point when the build is requested, but that if it is initiated by Jenkins the build result is created some (indeterminate?) time later? And, not knowing when it will be created it is hard to attach a log to it?
effectively, yes.. I don't know exactly when in the job timeline the build result record is created..
and I think it is ONLY created if there is an RTC build definition connected to the Jenkins job. at least that is how it behaves here on my dev system.
OK - that is helpful thanks. We do always have a build definition attached to the job. I will experiment a bit tomorrow (time permitting). I think if I ran some Java as a post build step I should be able to get the build result and attach something to it.