Running multiple TeamCity Agents on the same computer?

后端 未结 3 671
野趣味
野趣味 2020-12-07 10:57

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.

3条回答
  •  执念已碎
    2020-12-07 11:23

    The top answer is the correct method, but if you want to complete this more easily you can use the TeamCityAgent Chocolatey package and supply the agent name, the agent folder and the port as --params and it will handle setting up the config files as well as pulling in the required version of Java via the server-jre package.

    The one caveat to this is you need to use --force on any installs after the first agent as Chocolatey doesn't currently understand installing the same application with a different configuration as a "new" installation.

    You will also need to use --version 2.0.1-beta-05 since this is still in a testing phase, but should make it out of beta soon.

    Full install example for a second agent: choco install teamcityagent --force -y --params 'serverUrl=http://teamcity.local:8111 agentName=AgentUno agentDir=C:\buildAgentUno ownPort=9091' --version 2.0.1-beta-05

提交回复
热议问题