Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

58 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you