# Repository Exclude Patterns with Plastic SCM

**URL:** https://www.finalbuilder.com/forums/t/repository-exclude-patterns-with-plastic-scm/5507
**Category:** Discussion
**Created:** [September 12, 2016, 2:57am UTC](https://www.finalbuilder.com/forums/t/repository-exclude-patterns-with-plastic-scm/5507 "2016-09-12T02:57:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![swcyberflex](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/swcyberflex/32/149_2.png) [@swcyberflex](https://www.finalbuilder.com/forums/u/swcyberflex)
#### Post date: [September 12, 2016, 2:57am UTC](https://www.finalbuilder.com/forums/t/repository-exclude-patterns-with-plastic-scm/5507/1 "2016-09-12T02:57:50Z")

</div>

Hi,  
  
I seem to be having trouble with the exclude patterns when using them with Plastic SCM.  
  
I have the following branches  
  
/main  
/main/integration  
/main/task1  
/main/task2  
  
I want to build any check in on any task branch and exclude main and integration branches.  
  
At the moment I’ve got a “Dev” build with the repository exclude pattern of&nbsp;\main\integration\* but this still builds the integration branch when a check-in occurs.  
  
It’s likely I just have the incorrect syntax so would you mind providing the correct pattern for me to test with again? I’ve read through&nbsp;[http://wiki.finalbuilder.com/display/continua/Ant+Pattern+Usage](http://wiki.finalbuilder.com/display/continua/Ant+Pattern+Usage) and tried a few things but none have worked.  
  
Cheers,  
Sean

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [September 12, 2016, 4:03am UTC](https://www.finalbuilder.com/forums/t/repository-exclude-patterns-with-plastic-scm/5507/2 "2016-09-12T04:03:28Z")

</div>

Hi Sean,  
  
What are your branch settings? The repository exclude patterns are for matching against files and folders **under** the branch folders.&nbsp;  
  
To restrict branches use branch pattern matching. e.g.  
  
Branches to Monitor: By pattern  
Branch Pattern: /main/task\d+/  
Main Branch: /main/task1/  
  
Note that if you just want to restrict build triggering for a configuration, you can set the repository to monitor all branches, then set the Branch Pattern on the Trigger Branches tab of the Trigger dialog to: /main/task\d+

---

<div class="post-metadata">

### Author: ![swcyberflex](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/swcyberflex/32/149_2.png) [@swcyberflex](https://www.finalbuilder.com/forums/u/swcyberflex)
#### Post date: [September 12, 2016, 7:36am UTC](https://www.finalbuilder.com/forums/t/repository-exclude-patterns-with-plastic-scm/5507/3 "2016-09-12T07:36:28Z")

</div>

Yep, that’s the one. Helps if I use the right setting 😛   
  
 Thanks for that!
