Environment variables in the Team Concert plugin for Jenkins
Accepted answer
Comments
Not scientific, but solves the issue! In my case I executed set because the Jenkins server is running on a Windows machine. But you gave me the direction!
About your oddity, I have confirmed before that buildResultUUID is valid only if the request was started from the RTC client (including Personal builds). In this case, RTCBuildResultUUID will be assigned as buildResultUUID.
If the request started from Jenkins (i.e. by polling), the RTC plugin will generate the RTCBuildResultUUID on its own.
Also, the Console Output log will be reported back to RTC only if the request started from RTC. The buildResultUUID seems to be the reference between both sides.
I don't understand, however, how RTC is smart enough to catch a build result requested from outside, but not that smart to get the log file attached to it.
It's another story, anyway...
Thanks for the answer!
Brilliant - and thanks so much for the info on the log not going back to RTC. That was my next issue to look at and you just fixed it for me :-) I think I can modify the Java code that I run at the end of the Jenkins job to send the log somewhere. I wonder if I can link it to the buildResult? hmmm.
Comments
Lily Wang
May 28 '14, 3:45 a.m.You can find the built-in build properties provided by JBE from https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.concert.dotnet.doc/topics/r_build_prop.html&scope=null
I'm not sure if they all work in Jenkins.