I have two agents that can build my configuration. I've set up two because I sometimes need to do two simultaneous builds.
How can I set build agent priorities to force TeamCity choose specific agent if both are idle and available?
Now it chooses agent randomly or by some unknown factors...
You can filter which agents are used but I'm not sure you can specify which idle to agent to use.
If you are worried about TeamCity using the fastest agent it should do this automatically.
The Teamcity documentation states the following.
When there are several idle agents that can run a queued build, TeamCity tries to select the fastest one as follows:
If no builds have previously run on agents, the CPU rank is used to select an agent.
If builds have previously run on agents, the estimated build duration for the given build configuration is used to select an agent. The estimate is made based on the heuristics of the latest builds in the history of the build configuration; for estimating, the execution time of the more recent builds has more weight than that of the earlier builds. Personal and canceled builds are not taken into account, neither are any individual builds whose duration differs significantly from the rest of the builds for this build configuration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With