Gerrit configuration

Perforce provides a custom Python plug-in script named gconn-change-merged.py. When properly renamed, the script enables Gerrit to generate a webhook for a specific type of Git commit, either change-merged or ref-update. You might want to have two copies of the script, one for each type of action.

System requirements with Gerrit

  • Helix Git Connector 2017.1 July patch or later
  • Gerrit version 2.13 or 2.14 installed and working on the Git server with Python version of 2.7.x. or later
  • The Perforce webhook for Gerrit gconn-change-merged.py, which is in the /opt/perforce/git-connector/bin directory of the Git Connector
  • A user in the Gerrit application that is limited to the minimal privileges necessary for mirroring
  • A source repo in Gerrit that already exists and is not empty
Important

The target repo must NOT already exist in Helix Core Server.

The source repo must NOT be empty.

Next step

Installation and script renaming