We're using TeamCity Professional 9.1.1 with Git/Stash for version control and I'm trying to get automatic branch merging working.
Our scenario is that the devs create feature branches from master named feature/name-of-feature. Once the feature is ready for testing they merge the branch into an integration branch. We'd like to automate this in teamcity.
I've managed to get feature and bugfix branches building automatically by adding this to our Branch specification: in the VCS root for the master branch
+:refs/heads/feature/*
+:refs/heads/bugfix/*
But I'm struggling to get the feature branches to merge automatically into the integration branch. I've added an automatic merge build feature and I've tried various combinations of 'Watch builds in branches' and 'Merge into branch:' For 'Watch builds in branches' I currently have
+:feature*
+:bugfix*
and for 'Merge into branch:'
integration
and I've also tried
+:feature/*
+:bugfix/*
and
+:refs/heads/feature/*
+:refs/heads/bugfix/*
The builds are successful but the branch doesn't get merged into integration and there are no messages in the log.
Any ideas what I'm doing wrong?