为什么以及何时拥有多个构建代理? [英] Why and when to have multiple build agents?

查看:27
本文介绍了为什么以及何时拥有多个构建代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑 TFS 2010 的构建控制器具有 1 个以上构建代理的能力.由于构建是团队/环境的主观主题,因此请考虑在提交/签入时执行构建的环境.每个项目集将有 10 个以上的团队项目,但一天内可能只有 1 或 2 个被提交.

Consider TFS 2010's ability for a Build Controller to have 1+ build agents. Since builds are a subjective topic to the team/environment, consider an environment where builds are performed on commit/check-in. Each Project Collection will have 10+ Team Projects, but perhaps only 1 or 2 are being committed to in a day.

  • TFS 管理员应何时考虑创建新的构建代理?
  • 是否有多个代理并行运行?
  • 将单个代理定义到构建控制器时,它是否串行运行?
  • MSDN 指出:如果您将代理设置为具有专门的功能..." .这是什么意思?技术/平台差异化因素?您如何设置您的代理以拥有专门的功能?
  • 在(通常)每次签入时执行构建的环境中,如何有效地使用标记"构建代理.
  • When should a TFS administrator consider creating a new build agent?
  • Do multiple agents run in parallel?
  • When a single agent is defined to a Build Controller, does it run serially?
  • MSDN states: "if you set up your agents to have specialized capabilities..." . What does this mean? A technology/platform differentiator? How can you setup your agents to have specialized capabilities?
  • How can 'tagging' build agents be used effectively in an environment where builds are (typically) performed on each check-in.

推荐答案

您使用多个构建代理来支持多台构建机器(我目前在一个构建农场工作,该农场有 3 台构建机器 - 因此有 3 个构建代理 - 来分配负载).

You use multiple build agents to support multiple build machines (I work currently with a build farm with 3 build machines - and thus 3 build agents - to distribute the load).

您可能还希望拥有多个构建代理,以便能够并行运行构建.这是共享资源的一个很好的功能,但在您开始使用测试/实验室管理功能时需要这样做.

You also might want to have multiple build agents to be able to run builds in parallel. This is a nice feature to share resources, but a requirement when you start working with Test/Lab Management features.

具有以下功能:例如,您可以设置第 1 版第 3 方组件的构建代理,以及第 2 版的第二个构建代理.通过标记,您可以在构建定义中指定它将从中选择哪个构建代理构建代理池.

With the capabilities: for example you can setup a build agent with version 1 of a 3rd party component, and a second build agent with version 2. With tagging you can specify in the build definition which build agent it will choose from out of the pool of build agents.

这篇关于为什么以及何时拥有多个构建代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆