| You are viewing documentation of TeamCity 6.x, which is not the most recent released version of TeamCity. Please refer to the listing to choose another version. |
|
To add a checkout rule, click the edit checkout rules link on the build configuration's Version Control Settings page and a pop-up window will appear where you can enter the rule. The general syntax of a single checkout rule is as follows: When entering rules please note the following:
Rules can be used to perform the following operations:
An example with three VCS checkout rules: In the above example, the first rule excludes the src/help directory and its contents from checkout. The third rule is more specific than the second rule and maps the scr/samples path to the samples path in the Build Agent's default work directory. The second rule maps the contents of the scr path to the production/sources on the build agent, except src/help which was excluded by the first rule and scr/samples which was mapped to a different location by the third rule.
Administrator's Guide: VCS Checkout Mode |