Gerrit Plugins
Remarks#
-
Gerrit plugins are not provided compiled. Sources can be download from Gerrit Plugin code site. Nevertheless, you can find compiled version on the community Gerrit compiled plugins website.
-
Install plugin : https://gerrit-review.googlesource.com/Documentation/cmd-plugin-install.html
Replication plugin
It is used to duplicate a git repository from gerrit to anyway. Configuration file is $GERRIT_INSTALL/etc/replication.config.
Config file example to clone MyRepo from gerrit to backupServer
[remote "backup"]
url = ProjectUrlOnBackupServer/${name} #Example backup.some.org:/pub/git/${name}.git
push = +refs/heads/*:refs/heads/*
push = +refs/tags/*:refs/tags/*
projects = MyRepoTo reload the plugin, restart Gerrit server or execute following command if install plugin is installed:
ssh -p 29418 localhost gerrit plugin reload replicationFull documentation : Official Replication Plugin Documentation
Events-log plugin
This plugin is mandatory to make Gerrit able to receive message from other services. As an example, it has to be install to use Sonar Gerrit plugin
- Install
jarfile underpluginsfolder - Default configuration is sufficient