VCS Checkout rules not working as expected
Hi,
We have upgraded out Plastic SCM plugin to the latest version (SNAPSHOT 201703031558), the client stored on the TeamCity server and agents to version 5.4.16.814 (Doobie Brothers - China Groove) and also updated TeamCity server to version 10.0.5.
Builds that have been set up previously and have built successfully are now failing when trying to use checkout rules. An example of the rules is shown below;
-:.
+:Packages
+:Training
+:Source/testing/test protocols/simulators
The builds have all been set to checkout on the server as it states in the documentation that exclude rules do not work well on agent side checkout (and I have never been able to make them work properly on agent side checkout anyway)
I am struggling to understand if this issue is a TeamCity error, a Plastic SCM plugin error or a user error.
Could anyone please help or offer advice on how I can troubleshoot this further?
many thanks in advance!
Please sign in to leave a comment.
After further investigation I have discovered that individual exclude rules will work using agent side checkout (but not when using server side checkout);
-:Utilities
-:Training/TrainingUI
The above rules removes the folders from the checkout directory as expected leaving only the necessary project folders within the work folder. However, the rule to map paths while working perfectly on server side checkout does not work correctly on agent side checkout.
My scenario is as follows;
VCS_Root1 - 1 checkout rule
+:.=>ntbin/toolset
VCS_Root2 - 0 checkout rule
VCS_Root3 - 3 checkout rules
-:Utilities
-:Training/TrainingUI
-:DummyDatabase
So on experimentation
using server side checkout
VCS_Root1 works as expected and puts the content of the root into the alternate path - VCS_Root2 works as expected and puts the contents into the root of the checkout directory - VCS_Root3 fails to work and causes a build error blaming vcs root errors
Using Agent checkout
VCS_Root1 puts the contents directly into the directory root of the checkout directory - VCS_Root2 works as above - VCS_Root3 works as expected and only copies across the folders that have not been excluded in the above checkout rules
Prior to the latest updates of plugin and TeamCity everything worked on server side checkout and nothing worked on agent side checkout.
Can anyone help on approach I can adopt to get my builds working again?