I have a vNext build definition, which has a agent pool specified. This agent pool has more then one agent. I want to specify say agent number 2 to be used by this build definition. How can I make sure that for a particular build definition a specific build Agent is used to run the build?
You can add a User Capability to that specific build agent then in the build definition you put that capability as a demand (General tab)