VSTS 构建代理 - 一台计算机可以运行多个构建代理吗? [英] VSTS build agents - Can one computer run multiple build agents?
问题描述
我有一个托管 VSTS 构建代理的 Windows 虚拟机.由于正在运行的构建的数量和长度,我想知道是否可以在一台计算机上托管多个构建代理?这将允许一个专用于慢速构建的代理,以及一个专用于快速构建的代理.
I have a Windows VM that hosts a VSTS build agent. Due to the number and length of builds that are running I would like to know whether multiple build agents can be hosted on one computer? That would allow a dedicated agent for slow builds, and a dedicated agent for quick builds.
https://www.visualstudio.com/en-us/docs/build/admin/agents/v2-windows
推荐答案
是的,您可以在单个 VM 中运行多个代理.
Yes you can run multiple agents in a single VM.
创建两个目录,例如 Agent1 和 Agent2,在每个目录中提取代理,并针对您的 VSTS/TFS 帐户为它们配置不同的名称.
Make two directories say Agent1 and Agent2, extract the agent in each one of them and configure them with different names against your VSTS/TFS account.
它应该是开箱即用的.
这篇关于VSTS 构建代理 - 一台计算机可以运行多个构建代理吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!