Fix `unexpected token: &&` and missing parenthesis

Upon loading of the plugin Gerrit was throwing an excepion because the
&& operator is not handled correctly in some cases when it starts
a new line. [1]

The logic to find all active accounts also has been fixed by adding
a parenthesis that was missing when checking if the user `isServiceUser`
before adding it to the internal cache.

This prevented the loading of the plugin, introduced in change 424058.

[1]: https://issues.apache.org/jira/browse/GROOVY-7218

Bug: Issue 370792796
Change-Id: I88f2cf40aa6658c0a91e35f21bbadd49ffcddcfe
1 file changed
tree: 5a1d107cc8f701890dedabcd4630a5f367671d61
  1. admin/
  2. multi-primary/
  3. replication/
  4. .gitignore
  5. 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