Marcel Beeker
Marcel Beeker

Reputation: 171

Random pick TFS Build Agents

We have 1 Team Foundation Server 2017 Update 3 and 3 different build agents configuered. I've noticed that TFS picks the same build agent after when a project have to build. My question is there an option to pick a build agent randomly?

Upvotes: 1

Views: 189

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30422

Unfortunately there isn't an option to set that to pick a build agent randomly.

For now, in TFS 2017 it picks the agent in the order that they are registered if the agents are all idle when a build is queued, rather than randomly selecting an agent.

Set Build Agent Priority is an good idea, and there is a user voice here to suggest the feature, you can go and vote it up to achieve it in future.

Currently as a workaround, you can set the demands in build definitions to force building with the specific agents.

To do that, you can reference below articles:

Upvotes: 2

Related Questions