Skip to main content
Version: TeamForge 25.1

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​

  1. Extract the JAR file from gerrit.war:

    cd /opt/collabnet/gerrit/bin
    mkdir /tmp/unzipped && unzip -q gerrit.war -d /tmp/unzipped
  2. Copy the JAR into your Gerrit plugins directory:

    cd /tmp/unzipped/WEB-INF/plugins
    cp reviewers.jar /opt/collabnet/gerrit/plugins/
  3. 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
  4. Verify the installation:

    ssh -p 29418 <username>@<gerrit-host> gerrit plugin ls

    You should see output similar to:

    NameVersionApi-VersionStatusFile
    reviewers26bfd193.11.8-cn-next-SNAPSHOTENABLEDreviewers.jar
  5. Check gerrit.system.log to 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.