在同一台计算机上运行多个TeamCity代理? [英] Running multiple TeamCity Agents on the same computer?

查看:655
本文介绍了在同一台计算机上运行多个TeamCity代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有几个构建机器,每个构建机器运行一个TeamCity构建代理程序。每个机器都非常强大,我们想在同一台机器上运行几个构建代理。

We have several build machines, each running a single TeamCity build agent. Each machine is very strong, and we'd like to run several build agents on the same machine.

这是可能的,不使用虚拟化 ?有没有支持这个TeamCity的替代品?

Is this possible, without using virtualization? Are there quality alternatives to TeamCity that support this?

推荐答案

是的,这是可能的

几个代理可以安装在单机。他们作为单独的代理,TeamCity与他们一起作为不同的代理,不利用他们共享同一台机器的事实。
安装一个代理程序后,您可以安装其他代理程序,条件是满足以下条件:

Several agents can be installed on a single machine. They function as separate agents and TeamCity works with them as different agents, not utilizing the fact that they share the same machine. After installing one agent you can install additional one, providing the following conditions are met:


  • 代理程序安装在单独的

  • 将buildAgent.properties配置为具有不同的name和ownPort属性值

确保没有指定绝对检出目录的构建配置(或者,确保这些构建配置启用了干净检出选项,并且不能

Make sure, there are no build configurations that have absolute checkout directory specified (alternatively, make sure such build configurations have "clean checkout" option enabled and they cannot be run in parallel).

在Windows下,要将其他代理安装为服务,请修改 [agent dir] \launcher\conf\wrapper.conf
更改计算机中具有不同名称的属性:

Under Windows, to install additional agents as services, modify [agent dir]\launcher\conf\wrapper.conf to change the properties to have distinct name within the computer:


  • wrapper.console.title

  • wrapper.ntservice.name

  • wrapper.ntservice.displayname

  • wrapper.ntservice.description

  • wrapper.console.title
  • wrapper.ntservice.name
  • wrapper.ntservice.displayname
  • wrapper.ntservice.description

这篇关于在同一台计算机上运行多个TeamCity代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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