运行 特定用户下的多个构建代理

Running multiple build agents under specific user

由于其中一个构建步骤,我目前在 TeamCity 运行ning 中有一个构建代理在特定用户下。构建代理支持几个不同的项目,所以我想添加一个额外的构建代理。我已成功完成此操作,但这样做后新构建代理开始工作,但我的旧构建代理断开连接并显示“代理已取消注册 ”现在我使用同一个用户尝试 运行 两个构建代理,所以不确定这是否是导致问题的原因。两个构建代理都在同一台机器上并且具有不同的名称。我试图重新启动代理,希望它能自行修复,但没有成功。

several resources涵盖了在同一台机器上设置多个构建代理,如果您愿意,可以检查它们。

以下是 official 文档中的要求:

  • The agents are installed in separate directories.
  • The agents have the distinctive workDir and tempDir directories in the buildAgent.properties file.
  • Values for the name and ownPort properties of buildAgent.properties are unique.
  • No builds running on the agents have the absolute checkout directory specified.

请确保更改 端口 号码,因为这是构建代理可能被终止的最明显原因。此外,检查每个构建代理是否都有自己唯一的 name。 否则,请检查每个构建代理日志,如果不清楚,请在此处分享错误。