How can I disable a bamboo build agent dynamically?

I have a build agent that must be shared between humans and the build system because it has bespoke hardware attached. In the cases where people want to run interactively on the agent (for debugging mostly) I need the ability to tell bamboo that it cannot run jobs. It seems like the way to do this would be to disable the agent.

Is there a way to disable the agent either via REST or command line on the build server? I could also stop the build agent process; but that seems less desirable.

1 answer

I also would be interested in a definitive answer to this question, but one of the answers to a different Bamboo question I asked recently suggested (but didn't explicitly state) that you can't do this. See https://answers.atlassian.com/questions/11973309.

Your comment about stopping the agent process, which could be done programmatically I'm sure, might not be too bad an idea (and might help in my situation - thanks) but it's a bit messy and I don't know what would happen if the agent was running a plan at the time. Easy to test I guess.

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,072 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot