GitHub、Gerrit、Hudson(Jenkins) 工作流程 [英] GitHub, Gerrit, Hudson(Jenkins) workflow
问题描述
我刚刚开始一起使用 GitHub、Gerrit 和 Hudson(Jenkins).我需要一些关于工作流程的想法.
I'm just getting started using GitHub, Gerrit, and Hudson(Jenkins) together. And I need some thoughts on workflow.
我们想使用 GitHub 作为我们的主要远程仓库.我们希望将 Gerrit 主要用于代码审查,但也用于在 Hudson 中构建触发器.
We'd like to use GitHub as our main remote repo. We'd like to use Gerrit primarily for code reviews, but also for build triggers in Hudson.
不过,目前我在思考这方面的工作流程时遇到了一些麻烦,我想听听其他人自己做了什么.想法?
At the moment, though, I'm having some trouble thinking through the workflow for this and would like to hear what others have done themselves. Thoughts?
推荐答案
我没有直接使用 Gerrit,但我喜欢中间和专业 repo 之间的想法:
I haven't directly used Gerrit, but I like the idea of intermediate and specialized repo between:
- 您的开发者的存储库
- 中央 GitHub 远程仓库
所以你需要确定要在远程 GitHub 存储库中发布的内容:
So you need to determine what you want to publish in the remote GitHub repo:
- 要审查的代码(意味着本地 Gerrit Web 应用会拉取 GitHub 代码进行审查)
- 经过审查的代码(意味着您首先将提交发布到 Gerrit,然后在代码审查后将它们推送到 GitHub)
第二个工作流程更接近 Google Android Projects 遵循 Gerrit.
The second workflow is closer to what Google Android Projects follows with Gerrit.
在这两种情况下,都需要一个中间本地 repo 供 Gerrit 检查.
In both cases, an intermediate local repo for Gerrit to examine is needed.
这篇关于GitHub、Gerrit、Hudson(Jenkins) 工作流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!