15

I'd like to set up a nightly build for my release branch. Since I'm using git-flow I don't always have a relase branch so I would like it to build it if it can find a branch with a pattern of:

refs/heads/release-*

Any idea of how to get teamcity to perform this action for me?

slinzerthegod
  • 615
  • 6
  • 17
  • I don't know if this works with Git, but have you tried a scheduled trigger on the build configuration with a branch filter? – Nanhydrin Dec 17 '14 at 11:02

2 Answers2

7

Use Branch Filter in the Trigger and set the only filter as

+:release-*

Also in Version Control under Branch Specification use

+:(release-*)

I also had similar issue and solved it as given above. I think this would solve your problem too.

Nevin Raj Victor
  • 2,924
  • 3
  • 23
  • 37
  • I'm trying to do this exact thing and I have `+:(release/*)`, but it doesn't appear to be working. The build configuration just never does anything. – Ben Collins Sep 08 '16 at 19:12
0

If you setup the a CI trigger based on the VCS with a branch spec as you've outlined, it should automatically pick it up when it's created with git-flow and stop when it's merged. Have you had a specific issue with this functionality?

Japster24
  • 1,486
  • 3
  • 21
  • 23