8

I am currently trying to set up TeamCity to build all the branches which are not my team's main branches. I have had trouble getting this to work, and have only gotten this to function with the default branch. Our repository has the following branches: master, Daily-build, Branch-Alex, and others with similar names. I pretty much want this build configuration to run on pushes that do not include master. Here are some pictures of my configuration:

  1. VCS Root:

VCS Root Settings

  1. Trigger Settings:

Trigger Settings

  1. Current Build Config:

Current Build Config

TL:DR - Is there a better tutorial for setting up feature branch building in team city?

Bonus Points - How do I make the names just be the branch names rather than the "ref/heads/Daily-build"?

marc_s
  • 675,133
  • 158
  • 1,253
  • 1,388
Blaze Phoenix
  • 819
  • 13
  • 33

1 Answers1

8

So, my problem was a simple typo:

+:ref/heads/* should be written as +:refs/heads/*

Blaze Phoenix
  • 819
  • 13
  • 33
  • 7
    Bonus points : use +:refs/heads/(*) in your VCS root branch specs to control the branch name. whatever is matched between the brackets will be used as the branch name. – SteveChapman Nov 16 '14 at 20:39
  • More than two years later, I did the same thing too. Who would've thought that a missing 's' would cause so much headache? – ket Jun 02 '17 at 16:55