Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrate Gerrit with Gitlab

Do you have any tips or tutorials how to integrate Gerrit with Gitlab - Gerrit should be as code review for Gitlab repo?

like image 907
Lavrentijs L Avatar asked Oct 18 '22 07:10

Lavrentijs L


1 Answers

yes it can be integrated easily, install gitlab and gerrit.

1. create your repository on gitlab.
2. git clone --mirror <gitlab repo url>
3. create project on gerrit.
4. git push --mirror <gerrit_project_url>
5. configure gerrit replication plugin, this will replicate your all the changes to gitlab.

NOTE : you can use gerrit oauth plugin to authenticate using gitlab and jenkins to verify build.

https://gerrit.googlesource.com/plugins/replication/+doc/master/src/main/resources/Documentation/config.md

like image 68
Paramjeet Singh Avatar answered Oct 21 '22 04:10

Paramjeet Singh