How to get the build results from Build Definition using Java API?
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.
Vijay Reddy.
Accepted answer
I'd consider trying this approach https://jazz.net/wiki/bin/view/Main/BuildJavaProgrammingExamples#Querying_for_Builds_with_a_Given
Comments
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.
Vijay Reddy.
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).
thank you ralph... I finally Achived my goal.