I have a build status bot that monitors the statuses of various plans. I also want it to monitor the statuses of all the branches of all the plans. Once I had the plan_key and branch_name, I used to be able to do this with:
branch_info = bamboo.get_branch_info(plan_key=plan_key, branch_name=branch_name)
branch_number = branch_info['latestResult']['number']
But it's breaking on the second line now. Looks like branch_info doesn't hold the latestResult anymore?
Also, I tried using bamboo.build_latest_result(plan_key=branch_key) and that also doesn't work. I might be missing something silly.