Add Log To Build Result
![]()
Hi,
I'm wondering if it's possible to add a log file to the build result? We get the default log, "Full Build Log", but I'd like to add another that comes out of the build so that it's easily accessible. Is this possible if we aren't using Ant? Thanks, Lachlan Hillman. |
14 answers
![]()
I've filed 178006: NPE in ValidatingX509TrustManager.initializeBaseTrustManager and subscribed you.
Some other things to check in the meantime: - which JDK/JRE are you using? (see https://jazz.net/wiki/bin/view/Main/BuildFAQ#WhichJDK) - are you running TeamPlatform.startup() as the first thing you do with the Jazz/RTC API? |
![]() I've filed 178006: NPE in ValidatingX509TrustManager.initializeBaseTrustManager and subscribed you. Thanks very much for filing the defect. I believe I'm using the correct JDK version: I've been pointing to the jdk that comes with the JBE (which has been used to access the same RTC server). For reference, this version is: As for the code, I'm using the QueryBuildsWithTagExample found here: https://jazz.net/wiki/pub/Main/BuildJavaProgrammingExamples/QueryBuildsWithTagExample.java Looks like it calls TeamPlatform.startup();before anything else. |
![]() I'm wondering if it's possible to add a log file to the build result? We get the default log, "Full Build Log", but I'd like to add another that comes out of the build so that it's easily accessible. Same request. :wink: The Logs tab in the Eclipse UI has a button to add a log file and you already know of the Ant task. Another option is to use the Java API to code a program to add a log (which is essentially what the Ant task does). Is it possible to do this with the REST API? The Wiki page https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2 has examples only for Work Item, not for Build at all! We found the article https://jazz.net/library/article/195/ which states: The Jazz build toolkit does not provide command line utilities for publishing status or artifacts. To achieve the same functionality in the Perl script, we have three options: So, for now we are using the Ant task "artifactFilePublisher" in our scripts... Thanks in advance. |
![]() The essence of it is in com.ibm.team.build.internal.publishing.AbstractContributionPublisher.publish(IBuildResultHandle, BuildStatus, ITeamRepository) which does: Hi Nick, we have follow your steps and all works: File file = new File("C:\foo.txt"); Thank you for your help! |
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.