How to specify a build agent in vNext build

2020-02-15 04:46发布

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?

标签: tfs tfs-2015
2条回答
成全新的幸福
2楼-- · 2020-02-15 05:28

Now you can use Agent.Name or Agent.ComputerName demands in build def or when queuing a build: https://blogs.msdn.microsoft.com/ericparvin/2017/02/08/how-to-send-tfs-build-to-a-specific-agent-or-server/

查看更多
forever°为你锁心
3楼-- · 2020-02-15 05:37

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)

查看更多
登录 后发表回答