Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to get agent information of a build from bamboo rest api?

Is it possible to know on which agent a build was run from bamboo REST API?

1 answer

0 votes

HI @Kaushik Veluru

Here is the Bamboo server rest API documentation please have a look at it, Maybe it will help you to get the Agent details.

Hi @Yogesh Mude

I did look at the documentation. When I query for a particular build result key, the response JSON doesn't have any information about the agent it ran on. 

So was wondering if there is any other to get the agent context from build result.

HI @Kaushik Veluru

Tyr to use the Agent assignment, It will provide you the list of agent for that particular Environment. 

Thanks for your reply.

I have looked into the agent assignment. What is the 'executorId' here? How do I get that information?



In Bamboo, the build will run through the Executables nothing but the Agent.

So please check the Executable ID and pass it, and see the result.

Ex: for java project build using Maven we need to add the Task like Maven build in this case we need to add/provide the maven path ie nothing but the Executable.

Providing agent ID as executorId returns an empty list  '[]'. What does that mean? 

Does this API work only if the agent is dedicated to a plan?

I have a similar question. Suppose I have a plan with multiple stages and jobs, and for each job I want to know the agent that was used. When I use the API I seem to get all information, except the agent. I need to know in order to analyze queue wait time and agent resource utilization. 

Like # people like this

Hi @Nico Schuurmans ,

Could you please clarify, whether you found a solution of your question?

HI @Valerii unfortunately this information is still not provided by the API doing a "rest/api/latest/build#" - get all information except the agent it runs on. Dont understand as bamboo provides this info via the gui. (using bamboo 8.2.4)

Like # people like this

does not show up in bamboo  8.1.6 build 80114 either

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events