I would like Teamcity to Trigger a build when there is a gerrit change on a specific branch on a specific folder. I'm unable to achieve the same, any suggestions from all you experienced users out there is greatly appreciated.
Following is how my Structure looks like, I want the build to be triggered of both the Branch dev & Staging, any change under New/Folder/My_Content only and not on any other foder , file content
- Branch dev
--Repo
* New/Folder/My_Content
* Folder 2
* Folder 3
* File1.txt
* File1.html
* File1.log
- Branch Staging
--Repo
* New/Folder/My_Content
* Folder 2
* Folder 3
* File1.txt
* File1.html
* File1.log
This is what I have tried
VCS root name: my_root
set on branches
+:refs/(changes/*)
+:refs/heads/dev
+:refs/heads/Staging
VCS Trigger rules:
+:root=my_root:New/Folder/My_Content/**
Branch filter:
+:changes/*
The above rules always trigger builds on everything, on all the folders apart from the one I need.
And the second question I had was, Can I use parameters in the VCS Trigger rules. Something as follows.
VCS Trigger rules:
+:root=my_root:New/Folder/%my_var%/**
Branch filter:
+:changes/*