VCS Checkout rules

Hi,

If I understand well, checkout rules speed up checkout on the agent.

But what's happening if files are commited in a folder that is excluded
of checkout for a build. Will the build ignore the commit?

Gérald

3 comments
Comment actions Permalink

Hello,

  TeamCity ignores commits which do not affect any directory included into the build according to checkout rules.

  So, if all files of the commit are excluded, this change won't be shown in build changes at all.

  In general, checkout rules allow to reuse the same VCS root between several projects and build configurations (with different path mapping).
  Please read more about checkout rules in our docs.

  Regards,
  KIR

0
Comment actions Permalink

Le 05/05/2010 15:23, Kirill Maximov a ecrit :

   TeamCity ignores commits which do not affect any directory included into the build according to checkout rules.

>

   So, if all files of the commit are excluded, this change won't be shown in build changes at all.

>

   In general, checkout rules allow to reuse the same VCS root between several projects and build configurations (with different path mapping).
   Please read more about http://confluence.jetbrains.net/display/TCD5/VCSCheckoutRules.


Ok, and I found also that I can add rules for build triggering.

So using checkout rules or build triggering rules will have same effect,
if I exclude same folder ?

The problem I have now is that excluding folder from checkout won't work
in Mercurial with agent side check out, so I should to wait for issue
TW-11959 to be fixed.

Gérald

0
Comment actions Permalink

Hello,

  Build triggering rules affect only whether the change will trigger a build. For instance, you may want to avoid build triggering when there is a change in CSS or JSP files, but trigger only on change in JAVA or C# files.
  If you skip files in triggering rules, it will be checked out anyway.

  With checkout rules, the excluded directories should be ignored at all, i.e. the excluded files should not go to checkout directory.

  Regards,
  KIR

0

Please sign in to leave a comment.