TC doesn't delete perforce workspace after build
I'm using perforce server with max 20 clients/workspaces. After a test build (only with syncing) TC doesn't delete the client/workspace it was working on and when the build is activated again, it tries to create a new client/workspace placing it over client quote and failing. (" Can't add client - over license quota.") .
I tried to follow documentation when setting it up and double checked everything - is there something I missed?
Please sign in to leave a comment.
Which release are you using?
We are running into the same issue. I'm not sure why TC keeps creating more and more workspaces, but we always hit the 20 client limit very quickly
Hi,
TeamCity does not delete Perforce workspaces because it reuses them for the similar consequent builds. I.e. if you run several configurations with the same VCS root settings, it will use the same checkout directory and Perforce workspace, thus speeding up the build. Otherwise, each subsequent build will have to do clean checkout.
The documentation on how TeamCity handles perforce workspaces is available here: https://www.jetbrains.com/help/teamcity/perforce-workspace-handling-in-teamcity.html
Hope, this helps,