How to retrieve attribute "Build Engine" from IBuildResult object
As title, I have use RTC plain java client libraries to query the RTC system and retrieve the desired IBuildResult object. Then next step is that I want to retrieve the attribute "Build Engine" from it:
Above is a snapshot from my RTC system. For this example, I want to grab the "raphael" information.
Many thanks!
Accepted answer
Hi,
Build engine information can be obtained via the build request, following is the pseudo code
//get the item service to get the details
IRepositoryItemService itemService = << get the IRepositoryItemService.class >>
//get the build request handle
IBuildRequestHandle requestHandle = (IBuildRequestHandle) buildresult.getBuildRequests().get(0);
//get the build request details
IBuildRequest request = (IBuildRequest) itemService.fetchItem(requestHandle, IBuildRequest.PROPERTIES_COMPLETE);
//get the build engine for the build request
IBuildEngineHandle buildEngineHandler = request.getHandler();
Thanks,
Kishore