RTC Java Client Library
Hi,
I am trying to access RTC from my java application. The api documents are really not good enough to develop a proper code and there is no javadoc either. So I really need help out here to go further. I managed to connect RTC and get some basic information about a work item but what I need is a bit more than that. I need the information that we can access with RTC UI on build request page, like Deployment description, References ext. Could some one please help me how I can get that information. |
3 answers
Ralph Schoon (63.3k●3●36●46)
| answered May 23 '16, 3:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Follow https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ and properly set up your environment for debugging. Note the SDK comes with comments. https://rsjazz.wordpress.com/2015/10/28/build-artifacts-publishing-and-automated-build-output-management-using-the-plain-java-client-libraries/ shows some built API.
Finally, the com.ibm.team.build.client.ITeamBuildClient.getBuildDefinition(String, IProgressMonitor) wants the Build Definition ID and not the build ID. /** * Retrieves the build definition with the given id. * * @param buildDefinitionId * The build definition to retrieve. * @param progressMonitor * The progress monitor to track progress on or <code>null</code> * if progress monitoring is not desired. * @return The build definition, or <code>null</code> if no build * definition with the given id is found. * @throws IllegalArgumentException * If the <code>buildDefinitionId</code> is <code>null</code>. * @throws TeamRepositoryException * If an error occurs while accessing the repository. */ public IBuildDefinition getBuildDefinition(String buildDefinitionId, IProgressMonitor progressMonitor) throws TeamRepositoryException, IllegalArgumentException; |
Hi Arun,
Thanks for your response, unfortunately I am still struggling to get the information that I need with RTC library. Here is what I really need to get. Could you please help me how can I get that information by using RTC java API. In RTC, we have a custom part in work item which we called Build/Deployment, you can see how it looks like from the screenshot below. Could you please tell me by using which classes I can get the data inside that part? Thanks & REgards Evrim |
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.