Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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. 

https://docs.atlassian.com/atlassian-bamboo/REST/6.5.0/?_ga=2.242641030.542479807.1528216545-169502281.1503517115#d2e2088

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

 

Thanks.

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.

https://bamboo.air.com/rest/api/latest/agent/assignment?executorType=AGENT&executorId=280920167

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
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

179 views 4 6
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