如果分支存在,则为发布分支进行每晚构建 [英] Nightly build for release branch if branch exists
本文介绍了如果分支存在,则为发布分支进行每晚构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为发布分支设置一个夜间构建.由于我使用的是git-flow,所以我并不总是有一个relase分支,因此如果它可以找到具有以下模式的分支,我希望它可以构建它:
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?
推荐答案
在触发器中使用分支过滤器,并将唯一的过滤器设置为
Use Branch Filter in the Trigger and set the only filter as
+:release-*
也在分支规范下的版本控制中使用
+:(release-*)
我也遇到了类似的问题,并如上所述解决了该问题. 我想这也可以解决您的问题.
I also had similar issue and solved it as given above. I think this would solve your problem too.
这篇关于如果分支存在,则为发布分支进行每晚构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文