We have a number of builds that rely on each other (e.g. Build A has to run before Build B because Build B references .dlls created in Build A), so in the Source Settings of each build we hard-code the Build Agent Folder. It can't be the default $(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath) because then subsequent builds wouldn't know where to get their source. But now I've set up CI builds and I'm often getting the error:
Exception Message: Unable to create the workspace '106_33_pgbuildorig' due to
a mapping conflict. You may need to manually delete an old workspace.
I initially tried setting the CI builds to use a different folder, but it turns out that we need them to be in the same folder as well, because we want to pick up the latest output from a CI build in subsequent other builds.
Any ideas how I can avoid having to manually delete the workspaces created by Team Build so often?
Actually I don't know how these builds worked initially (I just started working here) since it would seem like hard-coding the Source Settings would cause workspaces to be created that overlapped and would fail on their next run anyway.