buildClient. getBuildDefinition(, myProgressMonitor) ,How know Field_ID
I tried to develop RTC Client using RTC API and now this client can connect to RTC Server ,
any one can illustrate how to get Field values from RTC server and how to know Field ID which used in the following Code .
buildClient. getBuildDefinition(<Field_ID>, myProgressMonitor)
Thanks for your Cooperation and Understanding .
any one can illustrate how to get Field values from RTC server and how to know Field ID which used in the following Code .
buildClient. getBuildDefinition(<Field_ID>, myProgressMonitor)
Thanks for your Cooperation and Understanding .
One answer
Start here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ . You will need to pass this as a parameter to the call, or you will have to query the data for some information. In the example below the Build Definition ID is hardcoded. You could have it as a parameter of type string. The information can be read in the RTC UI's - the name of the build definition in this case.
Or you need to find some API to find all the data (all build definitions), resolve and get the information from them and narrow it down. You would still need some information for how to narrow it down.
ITeamBuildClient buildClient = (ITeamBuildClient) teamRepository.getClientLibrary(ITeamBuildClient.class); IBuildDefinition buildDefinition = buildClient.getBuildDefinition("Production", monitor);
Or you need to find some API to find all the data (all build definitions), resolve and get the information from them and narrow it down. You would still need some information for how to narrow it down.