commit | 563d6bf2ab3106c8e8be8bd59823d0c0c51bb619 | [log] [tgz] |
---|---|---|
author | Diego Zambelli Sessona <diego.sessona@gmail.com> | Wed Oct 02 16:44:01 2024 +0200 |
committer | Diego Zambelli Sessona <diego.sessona@gmail.com> | Thu Oct 17 09:37:40 2024 +0200 |
tree | 5a1d107cc8f701890dedabcd4630a5f367671d61 | |
parent | 16c138fe71f5b871becced4a7e7ccd31d81e2738 [diff] |
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
This repository contains a collection of Gerrit scripting plugins that are intended to provide simple and useful extensions.
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.