# Can't get repository trigger to work

**URL:** https://www.finalbuilder.com/forums/t/cant-get-repository-trigger-to-work/5295
**Category:** Discussion
**Created:** [December 22, 2014, 5:05am UTC](https://www.finalbuilder.com/forums/t/cant-get-repository-trigger-to-work/5295 "2014-12-22T05:05:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kay.zumbusch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kay.zumbusch](https://www.finalbuilder.com/forums/u/kay.zumbusch)
#### Post date: [December 22, 2014, 5:05am UTC](https://www.finalbuilder.com/forums/t/cant-get-repository-trigger-to-work/5295/1 "2014-12-22T05:05:13Z")

</div>

Hi,  
  
we are using Subversion as our code repository and use branches and tags extensively. Until now we were only using manual builds. In order to get new builds of some of our feature branches automatically I started to add triggers to our main project’s configuration and set the repository trigger to start building a single feature branch. Unfortunately the trigger does not seem to work. I don’t get any automatic builds.  
  
Our subversion repository looks like this:  
  
/branches/-  
/tags/  
/trunk  
  
Our repository connector in Contirnua CI is set up like this:  
  
Repository Type: Subversion  
Branches To Monitor: By pattern  
Default Branch: /trunk/  
Branches Path: /branches/  
Branch Pattern: /[^/]+/  
  
This is what I configured in the repository trigger:  
  
Associated Changesets: Latest  
Trigger On (Branches): Pattern matched branches  
Branch Pattern: ^product-feature.\*  
Trigger On (Tags): Don’t trigger on tag changes  
  
I already checked for typos in the branch pattern three times and if the trigger is enabled. But I still have to start builds manually. Am I missing something here?  
  
Our environment:  
Windows Server 2012 R2  
Continua CI 1.5.1.49  
  
Regards  
  
Kay Zumbusch

---

<div class="post-metadata">

### Author: ![kay.zumbusch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kay.zumbusch](https://www.finalbuilder.com/forums/u/kay.zumbusch)
#### Post date: [December 22, 2014, 5:29am UTC](https://www.finalbuilder.com/forums/t/cant-get-repository-trigger-to-work/5295/2 "2014-12-22T05:29:30Z")

</div>

The forum software removed some information from our repository structure because I used angle brackets. This is our repository structure:   
  
 /branches/productname-featurename   
 /tags/releaseversionnumber   
 /trunk

---

<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: [December 23, 2014, 12:04pm UTC](https://www.finalbuilder.com/forums/t/cant-get-repository-trigger-to-work/5295/3 "2014-12-23T12:04:22Z")

</div>

Hi Kaye,  
  
The trigger dialog branch pattern could use some more hint text or validation - I’ll get on to that now.   
  
The pattern is actually matched against the full branch path (from the root of the repo) including the lead forward slash e.g. &nbsp;/branches/productname-featurename/  
  
So any of the following patterns will work:&nbsp;

`^/branches/productname-feature.$`

`^/branches/productname-feature`

`^/[^/]+/productname-feature.$`

`/productname-feature.*$`

`/productname-feature`

---

<div class="post-metadata">

### Author: ![kay.zumbusch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kay.zumbusch](https://www.finalbuilder.com/forums/u/kay.zumbusch)
#### Post date: [December 23, 2014, 9:31am UTC](https://www.finalbuilder.com/forums/t/cant-get-repository-trigger-to-work/5295/4 "2014-12-23T09:31:26Z")

</div>

Hi Dave,   
  
 thanks for clearing that up. I’ll try the new regular expression. You may have a look at the online documentation for Continua CI at [http://wiki.finalbuilder.com/display/continua/Repository+Trigger](http://wiki.finalbuilder.com/display/continua/Repository+Trigger) and add this information to it.   
  
 Regards   
  
 Kay Zumbusch
