How do I make a Bamboo build prefer its last build agent?

We have a Bamboo setup with about 30 build agents, and I have an incremental Gradle build.  An incremental build benefits greatly from being run on the same agent every time.  Is it possible to have make my build prefer its last build agent?

Workarounds:

(1) Create a Requirement so that my build only runs on a specific single agent.  But that only works so far:  Other builds will start on that agent, and my build will have to wait for those to finish.

(2) Create a Requirement so that my build only runs on a small set of agents. I will still lose a lot of the benefits of the incremental builds.

(3) Reserve a agent for my build only. My operations dept doesn't want to do this, as the agent will stay idle a lot.


So that leaves my question: is there a way for my build to prefer its last build agent, but switch to a different one if the last agent is busy? 

2 answers

0 vote

We do not provide such functionality ATM. Agent - job matching is purely based on capabilities/requirements match.

By the way, is it possible to create a "matches" requirement?  All the agents have their own requirement keys:  agent01.example.com, agent02.example.com, ...  Is it possible to create a requirement that matches agent0[12].example.com?  Or is it only possible to match on key content?

We do not provide "matches" requirement. One more thing: there's "Agent dedication" feature in Bamboo 5.7. It allows you to dedicate given agent to running certain plans/jobs. Maybe this can help with your problem.

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,096 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