对Gerrit的plugin安装和删除须要经过它的sshd来管理。ssh
如:ssh -p 8418 admin@localhost gerrit plugin ls 显示当前插件状况。.net
其余命令能够经过ssh -p 8418 admin@localhost gerrit plugin --help查看。插件
安装为ssh -p 8418 admin@localhost gerrit plugin install --name gerrit-events.jar $(pwd)/gerrit-events-1.99.1.jarrem
卸载为ssh -p 8418 admin@localhost gerrit plugin remove gerrit-eventsget
注:8418端口能够经过安装gerrit目录下的gerrit.config文件里的配置找到。it
如: /home/gerrit2/gerrit_site_http/etc/gerrit.config.event