And*_*hin 10 git teamcity merge github teamcity-9.0
鉴于有master和dev git分支,gitub托管在Github上,而TeamCity 9.0.1作为CI服务器安装.
teamcity构建项目配置为使用github存储库作为VCS根,并将refs/heads/master设置为默认分支.
所需的行为是在构建成功时从master到dev运行自动合并.
因此,我使用以下设置添加此处指定的自动合并构建功能:
+:master
dev
TEAMCITY: Automatic merge branch master into dev
build is successful
use fast-forward merge if possible
按Run后 - 构建为绿色,构建日志中没有显示任何错误,但完全没有按要求合并!
有什么问题,我在哪里可以找到有关构建功能执行的调试信息?
我真正需要的是创建一个专用的 teamcity 项目(称为Integration ),它首先处理master和dev分支中的提交。它是通过配置 VCS Root for Integration项目来实现的,该refs/heads/dev
项目指定为默认分支并在分支规范+:refs/heads/master
部分中指定。
该项目具有自动合并构建功能,配置的设置类似于问题中指定的设置(分支过滤器:+:refs/heads/master
,合并到分支<default>
)。
这就是我解决问题的方法。