Nightly build for release branch if branch exists

2019-02-16 07:17发布

问题:

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?

回答1:

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.



回答2:

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?