Gerrit and Gitlab Integration

2,260 views
Skip to first unread message

SANOOB E.P

unread,
Jul 20, 2016, 1:50:39 AM7/20/16
to Repo and Gerrit Discussion
Hello,

We are planning to use gerrit as our code review tool. How can I integrate gerrit with our internal gitlab server.

Luca Milanesio

unread,
Jul 20, 2016, 3:17:39 AM7/20/16
to SANOOB E.P, Repo and Gerrit Discussion
Hi,
you could integrate the two in a similar way we did with GitHub, see the GerritHub video at [1].

You can:
- set OAuth authentication with GitLab
- configure Gerrit replication to push reviewed branches to GitLab (see documentation at [2]).

HTH

Luca.


On 20 Jul 2016, at 02:15, SANOOB E.P <epsa...@gmail.com> wrote:

Hello,

We are planning to use gerrit as our code review tool. How can I integrate gerrit with our internal gitlab server.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SANOOB.............................................................

unread,
Jul 20, 2016, 4:46:45 AM7/20/16
to Luca Milanesio, Repo and Gerrit Discussion
Hi,

Gitlab is configurd internally and not publicly opened. Is it possible to integrate with internal gitlab server. 
--
Thanks & Regards.
Sanoob E.P

Luca Milanesio

unread,
Jul 20, 2016, 4:48:29 AM7/20/16
to SANOOB............................................................., Repo and Gerrit Discussion
Why not? But bear in mind that you'll need to extend the OAuth plugin which currently supports only GitHub and Google (see [3]).

Luca.

David Ostrovsky

unread,
Jul 20, 2016, 8:44:50 AM7/20/16
to Repo and Gerrit Discussion, epsa...@gmail.com

Am Mittwoch, 20. Juli 2016 10:48:29 UTC+2 schrieb lucamilanesio:
Why not? But bear in mind that you'll need to extend the OAuth plugin which currently supports only GitHub and Google (see [3]).

FYI: There were efforts to add GitLab OAuth provider to the plugin: [1].


Luca Milanesio

unread,
Jul 20, 2016, 8:49:17 AM7/20/16
to David Ostrovsky, Repo and Gerrit Discussion, epsa...@gmail.com
Can we squash it and post to Gerrit for review?

Luca.

Matthew Webber

unread,
Jul 20, 2016, 9:19:31 AM7/20/16
to Repo and Gerrit Discussion, epsa...@gmail.com
Can someone clarify the relationship between https://gerrit-review.googlesource.com/#/admin/projects/plugins/oauth (as mentioned by Luca) and https://github.com/davido/gerrit-oauth-provider/pull/56 (as mentioned by DavidO)?

I do notice that https://github.com/davido/gerrit-oauth-provider/releases was last released for Gerrit API 2.11.3 - is that valid for Gerrit 2.12.x (and the soon-to-be-released 2.13)?

Luca Milanesio

unread,
Jul 20, 2016, 9:21:16 AM7/20/16
to Matthew Webber, Repo and Gerrit Discussion, epsa...@gmail.com
The GitHub repo is the original place where the plugin was developed ... and then moved to Gerrit-Review.
In theory, all the PRs on GitHub should be closed and turned into changes on Gerrit-Review.

Luca.

On 20 Jul 2016, at 14:19, Matthew Webber <mat...@unsolvable.org> wrote:

Can someone clarify the relationship between https://gerrit-review.googlesource.com/#/admin/projects/plugins/oauth (as mentioned by Luca) and https://github.com/davido/gerrit-oauth-provider/pull/56 (as mentioned by DavidO)?

I do notice that https://github.com/davido/gerrit-oauth-provider/releases was last released for Gerrit API 2.11.3 - is that valid for Gerrit 2.12.x (and the soon-to-be-released 2.13)?


Saikrishna Vedaraju

unread,
Jul 17, 2017, 2:10:58 AM7/17/17
to Repo and Gerrit Discussion, mat...@unsolvable.org, epsa...@gmail.com
Can anyone tell, how can we integrate gerrit and gitlab.

Matthew Webber

unread,
Jul 17, 2017, 4:24:28 AM7/17/17
to Repo and Gerrit Discussion, mat...@unsolvable.org, epsa...@gmail.com
On Monday, July 17, 2017 at 7:10:58 AM UTC+1, Saikrishna Vedaraju wrote:
Can anyone tell, how can we integrate gerrit and gitlab.

You'll need to be more specific - what do you mean by "integrate"? What do you want to do?
Reply all
Reply to author
Forward
0 new messages