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 Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

495 views 2 5
View question

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