Problems with checkout rules for Git

I'm trying to get the checkout rules configured for a git repository, but I am receiving the following error:

Failed to perform checkout on agent: The include rule must have a form '. => subdir' (folder1/folder2=>.) for VCS Root My Project

jetbrains.buildServer.vcs.VcsException: The include rule must have a form '. => subdir' (folder1/folder2=>.) for VCS Root My Project

 at jetbrains.buildServer.buildTriggers.vcs.git.agent.GitUpdateProcess.validateCheckoutRules(GitUpdateProcess.java:331)


The syntax seems correct according to the rules (http://confluence.jetbrains.net/display/TCD6/VCS+Checkout+Rules).

The checkout works if there are no rules defined.

Not sure what else could be going on here.

Any ideas?

Thanks!
0
2 comments

Hi Mike,

you are right, the rule is correct. You got this error because git cannot clone some subdir of repository, so we support only
rules of form '. => subdir', meaning checkout whole repository to some subdir. I think an error message should be more clear and
should say that this restriction is specific to git VCS. Also our git documentation says nothing about this restriction - I will update it.

0
Avatar
Permanently deleted user

Thanks!

I eventually got it working by changing the checkout mode to "Automatically on server" instead of "Automatically on agent."

0

Please sign in to leave a comment.