且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将GitLab与TeamCity集成

更新时间:2023-02-07 16:51:18

我正在运行GitLab 8.0.2和TeamCity 9.1.1,并且能够在分支上运行CI构建并合并请求.

I'm running GitLab 8.0.2 and TeamCity 9.1.1 and am able to run CI builds on branches and merge requests.

我通过设置VCS触发器以及分支规范 +:refs/heads/(xyz*)其中xyz是我们的票务系统前缀的字符串,因为所有活动分支都需要在我们的问题跟踪器中的条目之后进行命名.

I trigger CI builds for specific branches by setting a VCS trigger together with the branch specification +:refs/heads/(xyz*) where xyz is the string for our ticket system prefix since all active branches need to be named after an entry in our issue tracker.

我通过分支规范+:refs/(merge-requests/*)

一切正常,并让我们知道所有功能/错误分支的状态并自动合并请求.

Everything works as as expected and lets us know the status of all feature / bug branches and merge requests automatically.

感谢Rob的评论链接到合并请求规范上的GitLab 8发行说明条目.

Thanks to Rob's comment linking to the GitLab 8 release notes entry on the merge request spec.