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.
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
Hi Evrim,
If you are not already refereed the below link, I would request you to refer.
https://rsjazz.wordpress.com/2013/03/14/what-apis-are-available-for-rtc-and-what-can-you-extend/
https://jazz.net/library/article/1229
http://thescmlounge.blogspot.in/
Note: Refer discussion also from the links.
Regards,
Arun.
If you are not already refereed the below link, I would request you to refer.
https://rsjazz.wordpress.com/2013/03/14/what-apis-are-available-for-rtc-and-what-can-you-extend/
https://jazz.net/library/article/1229
http://thescmlounge.blogspot.in/
Note: Refer discussion also from the links.
Regards,
Arun.
Comments
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;
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
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