This plugin provides a REST API and UI extensions for integrating CI systems with Gerrit.

Clone this repo:
  1. 1373d88 Adapt to changes in gerrit core by Youssef Elghareeb · 4 days ago master
  2. e72bced Drop tests for creating changes on checker refs by Edwin Kempin · 4 weeks ago
  3. ab49a63 Add support for new reboot ChecksApi by Ben Rohlfs · 8 weeks ago
  4. c6b699b Adjust to changes in Gerrit core by Patrick Hiesel · 8 weeks ago stable-3.3
  5. faa1669 Adapt to change in Gerrit core by Edwin Kempin · 3 months ago

Gerrit Code Review Checks Plugin

This plugin provides a unified experience for checkers (CI systems, static analyzers, etc.) to integrate with Gerrit Code Review.

When upgrading the plugin, please use init:

java -jar gerrit.war init -d site_path

More details about “init” in

UI tests

To run UI tests here will need install dependencies from both npm and bower.

npm run wct-test should take care both for you, read more in package.json.

You will need polymer-bridges which is a submodule you can clone from:

Test plugin on Gerrit

  1. Build the bundle locally with: bazel build gr-checks:gr-checks
  2. Serve your generated ‘checks.js’ somewhere, you can put it under gerrit/plugins/checks/ folder and it will automatically served at http://localhost:8081/plugins_/checks/ (no need to pass it to --plugins flag)
  3. Use FE dev helper,, inject the local served ‘checks.js’ to the page

If your plugin is already enabled, then you can block it and then inject the compiled local verison.

See more about how to use dev helper extension to help you test here: