Repository Exclude Patterns with Plastic SCM

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 \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 http://wiki.finalbuilder.com/display/continua/Ant+Pattern+Usage and tried a few things but none have worked.

Cheers,
Sean

Hi Sean,

What are your branch settings? The repository exclude patterns are for matching against files and folders under the branch folders. 

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+

Yep, that’s the one. Helps if I use the right setting :stuck_out_tongue:

Thanks for that!