Basic installation
Please refer to this document for how to install gerrit. (Choose mysql as database)
https://gerrit-documentation.storage.googleapis.com/Documentation/2.14.2/install.html
Please use this command to install plugin,
$java -jar gerrit.war init -d /home/gerrit/review_site --install-all-plugins
You might get such problem, when create database,
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Invalid default value for 'added_on'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
You can refer to this link, to remove STRICT_TRANS_TABLES from sqlmode and retry.
http://blog.csdn.net/wulantian/article/details/8905573
LDAP
By default, Gerrit login with external open ID account. You can add this section into review_site/etc/gerrit.config to login with LDAP server. User can sign in with domain user name and password.
[ldap]
server = ldap://xxxx
username = [email protected]
password = xxxx
accountBase = ou=yuneec,dc=yuneec,dc=com
accountPattern = (&(objectClass=user)(sAMAccountName=${username}))
accountFullName = displayName
accountEmailAddress = userPrincipalName
accountSshUserName = sAMAccountName
groupBase = ou=yuneec,dc=yuneec,dc=com
Support Chinese Characters
You need add UTF8 support. See this article.