Gerrit可以在Gitlab之前工作,还是要替换它 [英] Can Gerrit work in front of Gitlab or is it meant to replace it

查看:1365
本文介绍了Gerrit可以在Gitlab之前工作,还是要替换它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不认为我真的理解Gerrit如何融入我团队现有的工作流程。 Gerrit是否打算成为代码的核心枢纽?我一直在想像它与Atlassian的Crucible类似,它适合于Atlassian的Stash或Bitbucker。



我的团队目前使用非常活跃的Gitlab安装,但内置的代码审查设施缺乏,我绝对必须检查进入回购商的承包商的代码。



我需要一个防火墙后解决方案,而成本是一个很大的考虑因素。我听说过关于Gerrit的积极的事情,但并不真正解释它如何适应现有流程。我也很喜欢它的Eclipse集成似乎很不错。

解决方案

Gerrit希望拥有您使用它的存储库,即它期望git目录存在于已挂载的文件系统中。如果您希望它与GitLab(或GitHub)交互,您可以设置从Gerrit到GitLab的单向复制,以便在Gerrit中所做的更改将在几秒钟内推送到GitLab。对于GitHub,有一个 Gerrit GitHub插件来帮助解决这个问题。



您可以继续使用GitLab的其他功能,但是如果您不锁定存储库(或者至少阻止插入Gerrit管理的分支),那么下一次您将遇到麻烦尝试复制到GitLab存储库。



因此... Gerrit取代了GitLab的存储库管理和代码审查工具,但不包含问题跟踪器,wiki或类似的问题。


I don't think I'm really understanding how Gerrit can fit into my group's existing workflow. Is Gerrit intended to be the central "hub" of code? I have been imagining it as similar to Atlassian's Crucible, which fits in with Atlassian's Stash or Bitbucker.

My group currently uses a very active Gitlab installation but the built-in code review facility is lacking, and I absolutely must inspect code from contractors going into the repo.

I need a behind-the-firewall solution, and cost is a big consideration. I have heard positive things about Gerrit, but not really an explanation of how it can fit into an existing process. I also like that it seems to have pretty good eclipse integration.

Can someone help me out?

解决方案

Gerrit expects to "own" the repositories you use it with, i.e. it expects the git directories to be present in a mounted file system. If you want it to interact with GitLab (or GitHub) you can set up one way replication from Gerrit to GitLab so that changes made in Gerrit will be pushed to GitLab within a few seconds. For GitHub there's a Gerrit GitHub plugin to help with this.

You can continue to use the other features of GitLab but if you don't lock down the repositories (or at least block pushes into branches that Gerrit manages) you'll end up in trouble the next time Gerrit attempts to replicate to the GitLab repository.

So... Gerrit does replace GitLab's repository management and code review facilities but doesn't contain an issue tracker, wiki, or similar.

这篇关于Gerrit可以在Gitlab之前工作,还是要替换它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆