Reputation: 1786
Scenario:
I have created an Agent pool and added/configured 2 build agent in it, which are installed on two different machines. I have also enabled continuous integration. When many developers check in the code, it triggers the build that I have queued.
Queries:
Whether the build will be assigned to most available build agent?
Is there any way to determine which build agent has built the code against a check-in?
How to setup the build controller? What is it's exact purpose?
Upvotes: 4
Views: 1831
Reputation: 4647
Whether the build will be assigned to most available build agent?
The build will be assigned to any of the online agents ie there is no concept of "most" or "more" available agent.
Is there any way to determine which build agent has built the code against a check-in?
Yes, with a little digging. Get the build in which your commit was pushed to the repo. You can do this manually or write a program for this using the REST apis. The build logs will list the agent on which the build occurred.
How to setup the build controller? What is it's exact purpose?
If you are using agent pools then you no longer need to setup a build controller. The build controller was used in the earlier versions of build to orchestrate the build across various build agents. Now with agents directly configured against the Team Foundation Server the build controller is no longer required.
Upvotes: 6