How to I setup a build agent and restrict its use in TFS 2017?

149 views Asked by At

How do I setup a build agent and restrict its use to one teams project?

1

There are 1 answers

0
PatrickLu-MSFT On BEST ANSWER

Sorry, there is no way to directly restrict the agent use in a specific team project. The agent is based on the agent pool. Suggest you take a look at some more background about what they do and how they work especially the part of communication with TFS.

But you could do this in turn, restrict the team project build definitions only use the build agent. And the build definition is just team project level.

You could use custom Capabilities (on your agents) and Demands (on your build definitions) to ensure that particular agents are always reserved for particular build scenarios.

Also take a look at this similar question: Cannot add queue to existing TFS 2015 Build agent pool

If you want to restrict the agent to one team, you could set the permissions for a build definition to only allow a specific/team group to queue the build.