It's all about the answers!

Ask a question

How to get the build results from Build Definition using Java API?


Vijay Reddy Gaddam (562441) | asked Dec 08 '14, 12:31 a.m.
edited Dec 08 '14, 12:49 a.m.
I was able to get the build engine and also related project area from a build definition but I could not get the build results that are associated for a build definition. 
Can some one suggest the ways using JAVA API please?

I also need to get the build Definitions history also through API.

Thanks and Regards,
Vijay Reddy.

Accepted answer


permanent link
Ralph Schoon (59.4k23642) | answered Dec 08 '14, 3:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I'd consider trying this approach https://jazz.net/wiki/bin/view/Main/BuildJavaProgrammingExamples#Querying_for_Builds_with_a_Given
Vijay Reddy Gaddam selected this answer as the correct answer

Comments
Vijay Reddy Gaddam commented Dec 08 '14, 4:02 a.m.

Hi Ralph,


I have gone through this article. In this article I see that there is an information about the way for getting all the build results and from that build results finding the Build definition. 

But I need the information in the other way. I need to get the build results from the Build Definition, Since I see that a lot of build definition are being created by the Eu's and they are not deleting those build definitions after the usage has completed. So I need to get the information about the build results from Build definitions, such that I can prepare a report and discuss with the Eu about the re-usability and also creation and also deletion of the Build Definitions.

Can you please suggest any other alternatives if any?
 
Thanks and Regards,
Vijay Reddy.


Ralph Schoon commented Dec 08 '14, 4:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

https://jazz.net/wiki/bin/view/Main/BuildJavaProgrammingExamples#Querying_for_Builds_with_a_Given explains the query model - with tags. I would assume you can use the same query model with the build definition.

https://jazz.net/library/article/1229 explains that in section Querying for Items (I found that using a search engine).



Vijay Reddy Gaddam commented Dec 08 '14, 6:45 a.m.

 thank you ralph... I finally Achived my goal.

Your answer


Register or to post your answer.