The only way to show branches is using something like the following link (not actual working link): "https://bamboo.testserver/telemetry.action?filter=showPlanAndBranches&planKey=TEST-KEY"
This only shows the branches of a single plan. What I need is a way to show the branches of all plans. I would figure the link would be something like "https://bamboo.testserver/telemetry.action?filter=showBranches". Unfortunately that does not seems to be a thing.
Is there a way to get all branches of all plans into the telemetry?
What I need to solve is that I have the need of a single overview of all currently faling plans and branches.
Hey Joris,
Thanks for your question. I'd have an idea for you which involves 2 Bamboo REST endpoint calls and a loop, so some coding or scripting. But that's fun, isn't it.
Please find the Bamboo REST API document for your reference and utilize it for details related to both REST APIs that I'll print out below.
So here we go, these are the steps required.
By the above steps 1 - 3 you should get to know all plans your instance possesses, all branches per plan and, implicitly, summing up all these branches, the total amount of branches that you have, per name.
Now for point (1) the REST endpoint used with the GET method is as simple as this:
/plan
Per use of additional parameters in this call, you'd be able to get further plan details, if wished.
For step (3) from above the REST endpoint, again being used per GET, is this one:
/plan/{projectKey}-{buildKey}/branch
You can e.g. use the "enabledOnly" parameter to filter out disabled branches.
Hope that help you Joris or whoever else wants to collect that piece of Bamboo information.
Thanks and cheers, Gerhard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.