简体   繁体   中英

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

如何设置构建代理并将其使用限制为一个团队项目?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM