Yes, it s possible:
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:
- the agents are installed in the separate directories
- they have distinctive work and temp directories
- buildAgent.properties is configured to have different values for name and ownPort properties
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).
Under Windows, to install additional agents as services, modify [agent dir]launcherconfwrapper.conf
to change the properties to have distinct name within the computer:
- wrapper.console.title
- wrapper.ntservice.name
- wrapper.ntservice.displayname
- wrapper.ntservice.description