I get the following exception in the the latest update of gerrit trigger plugin:
It looks like in the following commit the dependency to apache commons lang 3 was introduced:
This dependency is resolved during build time via the rabbitmq-consumer plugin. Since this plugin is optional, the class will not be found if this plugin is not installed.
There are now two possibilities to fix this (which is why I didn't create a pull request in the first place):
- Replace in class 'com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.EventListener' the import 'org.apache.commons.lang3.StringUtils' with 'org.apache.commons.lang.StringUtils'. This class is available with core jenkins installation.
- Explicitely add apache commons-lang3 to the dependencies of gerrit trigger plugin to make sure it is always imported.