Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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!

1 vote


Accepted answer

Permanent link
 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


Lee John selected this answer as the correct answer

2 votes

Comments

 I post the whole same code which I prove it will work in below link:


Anyone who have same problem can be benefit. 

Thanks to Kishore!

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Mar 23 '15, 8:41 p.m.

Question was seen: 2,555 times

Last updated: Mar 30 '15, 3:38 a.m.

Confirmation Cancel Confirm