Fetch build log from an IBuildResult object
Is there an easy way to find the build log (link to it or the log itself) when we have an IBuildResult object?
Thanks! -Steve |
Accepted answer
5 other answers
Is there an easy way to find the build log (link to it or the log itself) when we have an IBuildResult object? Hi Steve, You could do something along these lines.
Brent Ulbricht RTC Build Lead |
Hi Brent - Thanks for the reply. I'm able to get the name of the log with the code you supplied but its not quite what I'm looking for.
I've tried with: PROPERTY_NAME_FILE_NAME, PROPERTY_NAME_URL, PROPERTY_NAME_FILE_PATH ... but they're all null except for PROPERTY_NAME_FILE_NAME, and that's just a relative path like build-1308857481749.log. Is there a way to compose the url to the log that can be passed on to a user or fetched via browser? Thanks! -Steve |
A typical URL for the log would be like:
https://rtc01....../jazz/resource/virtual/build/result/_u11NsZ1VEeCO-eRZAbDMnQ/contribution/_CC5fgJ1WEeCO-eRZAbDMnQ/build-1308805236565.log So its a matter of filling in those IDs before and after /contribution/ ... Thanks! -Steve |
Am I seeing these nulls because I am not fetching the correct items ? I'm doing a partial fetch as follows:
String[] properties = new String[] { IBuildResult.PROPERTY_LABEL, IBuildResult.PROPERTY_BUILD_STATUS, IBuildResult.PROPERTY_BUILD_STATE, IBuildResult.PROPERTY_BUILD_TIME_TAKEN, IBuildResult.PROPERTY_PERSONAL_BUILD, IBuildResult.PROPERTY_BUILD_DEFINITION, IBuildResult.PROPERTY_SUMMARY, IBuildResult.PROPERTY_BUILD_ACTIVITIES, IBuildResult.PROPERTY_TAGS, IBuildResult.PROPERTY_BUILD_RESULT_CONTRIBUTIONS }; List<?> buildResults = teamRepository.itemManager().fetchPartialItems(queryPage.getItemHandles(), IItemManager.DEFAULT, Arrays.asList(properties), monitor); |
See also discussion in https://jazz.net/forum/questions/116496/retrieve-build-log
|
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.