How to use single perforce client/workspace for all teamcity build configurations ?

I have multiple projects and build configurations in teamcity, and they are all using the same perforce VCS Root. But when they checkout the sources for each build configuration, they create a separate client/workspace on perforce server. Is there any way to use only one client/workspace for same VCS root in multiple build configurations ? 

0
1 comment
Hi! Currently, there is no easy way to achieve that. Here's the related feature request (please upvote/watch): https://youtrack.jetbrains.com/issue/TW-56348
 
And this is what worked for me as a workaround:
  1. Use 'Client' in VCS Root P4 Connection Settings, and not 'Stream' or 'Client mapping';
  2. Set the build configuration parameterteamcity.perforce.agent.reuse.client=true (documentation);
  3. Set the build configuration parameter: teamcity.agent.failBuildOnCleanCheckout=ignoreAndContinue (documentation);
  4. Set the internal property teamcity.perforce.enable-no-clean-checkout=true (documentation);
  5. Set the VCS Checkout directory of your build configurations to the location of the desired workspace on the agent.
1

Please sign in to leave a comment.