Adapt warm-cache script for gerrit 3.7

The script is pretty old, looks like it was developed sometime in 2016
based on Gerrit 2.14 (?). As such when running it in Gerrit 3.7 some
classes are missing and therefore the commands will fail.
Change the script in a way that compiles with gerrit 3.7 version
and all exposed commands run successfully. Replace ReviewDB operations
with its successor where possible.

Change-Id: I594a32d7e4eff6dabf1c761b6dcb9342508812f9
1 file changed
tree: 9d1008342629a5a7a9b8538bc42f9450f0c619c7
  1. admin/
  2. multi-primary/
  3. .gitignore
  4. README.md
README.md

Gerrit scripting plugins collection

Overview

This repository contains a collection of Gerrit scripting plugins that are intended to provide simple and useful extensions.

How to run the scripting plugins

Gerrit needs to be able to recognise the scripts syntax and being able to load them as plugins.

In order to be able to run Groovy scripts, you need to install first the Groovy scripting provider and then copy the Groovy scripts under your Gerrit /plugins directory.

Similarly for Scala scripts, you need to install the Scala scripting provider and then copy the Scala scripts under your Gerrit /plugins directory.

Administration Scripts

Gerrit multi-primary Scripts