views:

127

answers:

1

I'm just getting started using GitHub, Gerrit, and Hudson together. And I need some thoughts on workflow.

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?

A: 

I haven't directly used Gerrit, but I like the idea of intermediate and specialized repo between:

  • your developer's repos
  • the central GitHub remote repo

So you need to determine what you want to publish in the remote GitHub repo:

  • code to be reviewed (meaning a local Gerrit webapp would pull the GitHub code to examine)
  • code that has been reviewed (meaning you publish first your commits to Gerrit, and after code review, you push them to GitHub)

The second workflow is closer to what Google Android Projects follows with Gerrit.

In both cases, an intermediate local repo for Gerrit to examine is needed.

VonC