How to query all build engines and get the build definitions associated to it in Java API?
I want to analyze the load on each build engines and rearrange some build definitions to some other build engines.
To do this which I want to get all available Build engines in a given PA and then get all build definitions associated to it.
How can i do this with Plain Java API?
we have 50+ Build engines and doing this manually is tough and also want to do the same in future too.
|
2 answers
I found https://jazz.net/forum/questions/88881/how-to-get-the-iteambuildservice and this is mostly what I need.
With the piece of code in the above link, the following code will give all the build definitions from the Engine.
List<IBuildDefinitionHandle> lstBDefs = buildEngine.getSupportedBuildDefinitions(); Thanks @Ralph and @sdetweil |
Ralph Schoon (63.7k●3●36●47)
| answered Aug 09 '17, 5:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER For the Build APIs see: https://jazz.net/wiki/bin/view/Main/BuildJavaProgrammingExamples
Comments
Karthik Krishnan
commented Aug 10 '17, 11:43 a.m.
Thanks Ralph for the pointers.
I also found https://jazz.net/forum/questions/88881/how-to-get-the-iteambuildservice and this is mostly what I need.
Now that I have the build engines, I am able to get buildEngine.getSupportedBuildDefinitions() just that I am unable o get the ID of the build definition returned. I am exploring that.
|
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.