VCS Trigger and Branch Filters

Hello,

I am currently evaluating TeamCity and I have issues with properly setting up VCS-Triggers for a project:

In the VCS Root I set the default branch to be "develop" and specifications to all heads:
tcvcsroot.jpg
In the VCS Trigger in the configuration for the CI-Build I specified that I only want to build "develop" and "feature/*" branches:

tctriggers.jpg
However, when I commit a change to one of the feature branches or to the develop branches, no build is triggered and the changes are listed as pending with no possibility to find out why no build was triggered. Logs didn't help here either:
tcspending.jpg
What am I doing incorrect here?
Thank you

1 comment
Comment actions Permalink

Hello, as mentioned in VCS trigger description, you need to use logical names of branches, i.e. what you see on the build configuration page. In your case logical names would be develop, myFeature1, myFeature2, etc. (http://confluence.jetbrains.com/display/TCD8/Working+with+Feature+Branches#WorkingwithFeatureBranches-logicalBranchName)

You need to change branch spec to this:
+:refs/heads/develop
+:refs/heads/(features/*)

and use trigger rules:
+:develop
+:features/*

0

Please sign in to leave a comment.