# Unable to trigger a build (svn repository)

**URL:** https://www.finalbuilder.com/forums/t/unable-to-trigger-a-build-svn-repository/5323
**Category:** Discussion
**Created:** [March 10, 2015, 11:55am UTC](https://www.finalbuilder.com/forums/t/unable-to-trigger-a-build-svn-repository/5323 "2015-03-10T11:55:25Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![mohsen.naghian](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@mohsen.naghian](https://www.finalbuilder.com/forums/u/mohsen.naghian)
#### Post date: [March 10, 2015, 11:55am UTC](https://www.finalbuilder.com/forums/t/unable-to-trigger-a-build-svn-repository/5323/1 "2015-03-10T11:55:25Z")

</div>

Hi,&nbsp;  
I am trying to set a build trigger to run a new build whenever a change is detected in a branch in the repository.&nbsp;  
The repository structure is rather simple:&nbsp;  
-trunk  
-branches  
–Product1  
—Version1  
—Version2  
–Product2  
—Release1  
—Release2  
  
The repository monitoring is done on trunk and branches:&nbsp;  
Default Path: trunk  
Branches Path: branches  
Branch Pattern: /(Product1|Product2)/  
  
There are two triggers set, one is supposed to detect the changes on trunk, the other one should detect the changes on "branches/Product2/Release1/"  
The first triggering is working fine, however the second one is not triggered at all. The branch pattern used for the second trigger is:&nbsp;^branches/Product2/Release1/\*  
Looking at c:\ContinuaShare\Rc on the continua server, it seems the changes in product2/release1 branch is detected correctly and the changes are presenting in the server disk.&nbsp;  
  
Do I miss something? Is the defined pattern correct to trigger the build?&nbsp;  
Any help would be appreciated

---

<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: [March 11, 2015, 5:19am UTC](https://www.finalbuilder.com/forums/t/unable-to-trigger-a-build-svn-repository/5323/2 "2015-03-11T05:19:57Z")

</div>

Hi Mohsen,  
  
Note you will need to untick “Match branch pattern against top-level folders only” otherwise the branch pattern on the repository will match /branches/Product1 and&nbsp;/branches/Product2 but not /branches/Product2/Release1  
  
You probably want to use the branch pattern &nbsp;/(Product1|Product2)/[^/]+/  
  
This will match:

- /branches/Product1/Version1
- /branches/Product1/Version2
- /branches/Product2/Release1
- /branches/Product2/Release2

  
Note also the Subversion branches start with a forward slash so your&nbsp;[trigger branch pattern](http://wiki.finalbuilder.com/display/continua/Repository+Trigger#RepositoryTrigger-Patternmatchedbranch)&nbsp;would be:  
  
^/branches/Product2/Release1/

---

<div class="post-metadata">

### Author: ![mohsen.naghian](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@mohsen.naghian](https://www.finalbuilder.com/forums/u/mohsen.naghian)
#### Post date: [March 11, 2015, 9:48am UTC](https://www.finalbuilder.com/forums/t/unable-to-trigger-a-build-svn-repository/5323/3 "2015-03-11T09:48:26Z")

</div>

Hi Dave,   
  
 Thanks for the reply.   
 Updating the value of branch pattern to /(Product1|Product2)/[^/]+/ results No branches matched error   
 Updated the trigger branch pattern to be ^/branches/Product2/Release1/ but still committed new changes to this branch did not trigger the build.   
 “Match branch pattern against top-level folders only” is not ticked   
  
 Regards,   
 Mohsen

---

<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: [March 11, 2015, 9:57am UTC](https://www.finalbuilder.com/forums/t/unable-to-trigger-a-build-svn-repository/5323/4 "2015-03-11T09:57:13Z")

</div>

What version of Continua are you using?

---

<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: [March 11, 2015, 10:04am UTC](https://www.finalbuilder.com/forums/t/unable-to-trigger-a-build-svn-repository/5323/5 "2015-03-11T10:04:13Z")

</div>

There’s an issue with the validation when you have “Match branch pattern against top-level folders only” is not ticked. We fixed this for another user but have not put it out in a official release just yet.  
  
You can download the update here:  
  
 [Continua CI Server Setup 64 bit v1.5.1.121](http://downloads.finalbuilder.com/downloads/continua/1.5/ContinuaCI.Server.Setup_x64_1.5.1.121.exe)  
[Continua CI Agent Setup 64 bit v1.5.1.121](http://downloads.finalbuilder.com/downloads/continua/1.5/ContinuaCI.Agent.Setup_x64_1.5.1.121.exe)

---

<div class="post-metadata">

### Author: ![mohsen.naghian](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@mohsen.naghian](https://www.finalbuilder.com/forums/u/mohsen.naghian)
#### Post date: [March 11, 2015, 11:18am UTC](https://www.finalbuilder.com/forums/t/unable-to-trigger-a-build-svn-repository/5323/6 "2015-03-11T11:18:53Z")

</div>

Hi Dave,   
  
 I updated continua with the build you provided and also changed the value of branch pattern to /(Product1|Product2)/[^/]+/   
 This time it didnt display any error, however the triggering still is not working with committing new changes to /branches/Product2/Release1/   
  
 -Mohsen

---

<div class="post-metadata">

### Author: ![mohsen.naghian](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@mohsen.naghian](https://www.finalbuilder.com/forums/u/mohsen.naghian)
#### Post date: [March 11, 2015, 11:53am UTC](https://www.finalbuilder.com/forums/t/unable-to-trigger-a-build-svn-repository/5323/7 "2015-03-11T11:53:12Z")

</div>

I got the trigger also working with updating the trigger pattern branch to: /branches/Product2/Release1/   
 previously it was set to ^/branches/Product2/Release1/   
  
 Thanks for the help   
 -Mohsen

---

<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: [March 12, 2015, 6:31am UTC](https://www.finalbuilder.com/forums/t/unable-to-trigger-a-build-svn-repository/5323/8 "2015-03-12T06:31:57Z")

</div>

Hi Mohsen,  
  
Good to hear you’ve got it working. I’d add some validation to the trigger branch pattern to deal with this.
