Set up Reviewers Plugin
The Reviewers plugin lets you configure default reviewers for Gerrit projects or branches. When a new change is created, the plugin automatically adds the configured reviewers, saving time and ensuring the right people are notified.
Install the Plugin
-
Extract the JAR file from
gerrit.war:cd /opt/collabnet/gerrit/bin
mkdir /tmp/unzipped && unzip -q gerrit.war -d /tmp/unzipped -
Copy the JAR into your Gerrit plugins directory:
cd /tmp/unzipped/WEB-INF/plugins
cp reviewers.jar /opt/collabnet/gerrit/plugins/ -
Restart Gerrit so the plugin is fully activated. It may take a few minutes for Gerrit to detect and load the plugin.
teamforge restart -s gerrit -
Verify the installation:
ssh -p 29418 <username>@<gerrit-host> gerrit plugin lsYou should see output similar to:
Name Version Api-Version Status File reviewers 26bfd19 3.11.8-cn-next-SNAPSHOT ENABLED reviewers.jar -
Check
gerrit.system.logto confirm the plugin was loaded successfully.
Reload the Plugin
To reload the plugin without restarting Gerrit:
ssh -p 29418 <username>@<gerrit-host> gerrit plugin reload reviewers
More Information
For configuration details (setting up default reviewers per project, branch filters, and more), see the official Reviewers plugin documentation on the Gerrit Google Open Source site.