Nightly build for release branch if branch exists

2019-02-16 06:49发布

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?

2条回答
虎瘦雄心在
2楼-- · 2019-02-16 07:40

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.

查看更多
Juvenile、少年°
3楼-- · 2019-02-16 07:40

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?

查看更多
登录 后发表回答