I am trying to get teamcity to work with 3 build agents. I can start the 3 agents and make them work in teamcity. I have configured each agent to use its own work and temp dir, have its own port and name. The first "stage" of a build happens in the directories set for that particular agent (say /opt/teamcity/agent1/work etc.), but later on the agents insist on using /opt/teamcity/buildagent/work etc.) where buildagent is the default agent. Even if that agent doesn't exist and I remove that directory, it will be recreated.
The result of this is that when agents work parallel they will start overwriting eachother's files and cause errors. I would like to know how to make the agents totally use their own directories. I must be overlooking something really obvious, but I have yet been unable, with the aid of the documentation to find out what I did wrong.
Thank you for any help.