Gerrit使用笔记

Gitlab、Github的Pull Request功能可以进行Code Review,但Gerrit更强大,可以搭配Jenkins、LDAP等在企业内部搭建完善的Code Review流程。这里记录下自己对其的了解,方便在工作中使用它。

安装

1
2
3
4
5
6
7
8
9
10
11


# 下载war包
wget https://gerrit-releases.storage.googleapis.com/gerrit-3.1.3.war

# 安装
java -jar gerrit*.war init --batch --dev --install-all-plugins -d ~/gerrit_testsite
# —batch 默认使用一些配置
# —dev 开发环境
# -d 安装目录
# --install-all-plugins 安装插件

文件夹结构

  • bin:命令存放目录

Read More