如何在 vNext 构建中指定构建代理 [英] How to specify a build agent in vNext build
本文介绍了如何在 vNext 构建中指定构建代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 vNext 构建定义,其中指定了一个代理池.这个代理池有不止一个代理.我想指定此构建定义要使用的代理编号 2.我如何确保对于特定的构建定义,使用特定的构建代理来运行构建?
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)
这篇关于如何在 vNext 构建中指定构建代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文