Teamcity removes and creates a new workspace almost every run using Perfoce CSV
Hi,
I have a VCS Perforce configured. The problem is that almost every run it removes and creates a new workspace in Perforce server.
I have done a few tests trying to fix it. None of them were successful.
-In VCS settings, I have set P4 Connection settings to a stream. Looking at a specific configuration->Version Control Settings, I have set Checkout directory to Automatic, but I tried with a custom path too.
-In VCS settings, I have set P4 Connection settings to a client. I have set Checkout directory to Automatic and custom path too in version control settings.
-I have set this internal properties:
teamcity.agent.failBuildOnCleanCheckout=ignoreAndContinue
teamcity.notification.maxChangesNum=100
teamcity.perforce.enable-no-clean-checkout=true
I wonder if there is any way to cancel the deleting or recreating, I am stuck with that, I will appreciate any kind of help.
Thank you very much.
Please sign in to leave a comment.
Hi,
TeamCity builds the workspace name from the checkout directory full path + build agent + hash of the VCS Root properties. If you use some variable in VCS Root which changes from build to build, this will result in the different workspace names.
If this does not help, please create a ticket in https://youtrack.jetbrains.com/issues/TW and provide several build logs from the subsequent builds on the same build agent which should have the same workspace, but don't.
Kind regards,
Hi,
thank you very much for your soon response. I don't know if my explanation was wrong, I don't use any variable on VCS Root. All I have done is test different options trying to fix the issue but they didn't work at all.
Hello Amartinez,
TeamCity does not re-create workspaces when it is not required, it does it if some settings have changed (like you've changed checkout directory or custom path). To investigate the issue we need data from your installation, as I mentioned in my previous comment, from subsequent builds without changes on the same build agent + details of VCS root configuration.
Thanks,