Nightly build for release branch if branch exists

倾然丶 夕夏残阳落幕 提交于 2019-11-30 23:02:28

问题


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?



来源:https://stackoverflow.com/questions/27122891/nightly-build-for-release-branch-if-branch-exists

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!