jenkinsci / groovy-events-listener-plugin

A Jenkins plugin, which executes groovy code when an event occurs.
https://plugins.jenkins.io/groovy-events-listener-plugin/
MIT License
36 stars 34 forks source link

Fix Groovy version incompatibility in newer Jenkins #61

Closed darxriggs closed 4 years ago

darxriggs commented 4 years ago

This fixes issue #49.

In Jenkins 2.143 Groovy 2.4.11 was replaced with Groovy 2.4.12.

The Groovy packaged with the plugin and the one packaged with Jenkins should have the same version. Otherwise conflicts may occur.

I also tested it manually with Jenkins 2.204.1 by uploading the built HPI file manually and running the "Test Groovy Code" in the global configuration.

darxriggs commented 4 years ago

@markyjackson-taulia A release including this would be much appreciated.

Please also update the version contained in gradle.properties.

gitstart commented 4 years ago

when release 1.018 available on https://updates.jenkins-ci.org/download/plugins/groovy-events-listener-plugin/ ?

AlbanAndrieu commented 4 years ago

It is not enough, I am having the same issue on jenkins 2.204.3. Please advice, I am able to rebuild the plugin and test the solution

AlbanAndrieu commented 4 years ago

Version https://github.com/jenkinsci/groovy-events-listener-plugin/tree/1.014 is working without this issue on jenkins LTS 2.204.5

fgiacomelli commented 4 years ago

Same problem for me. Working with event-listener 1.0.14 and Jenkins 2.222.1

jamcel commented 4 years ago

Are you planning a release any time soon? I'm also very interested in this fix since I'm running Jenkins 2.240 which installs Version 1.017 of this plugin but then fails to load it.

SimiFrancis commented 4 years ago

Same problem for me as well.

Loading plugin Groovy Events Listener Plugin v1.017 (groovy-events-listener-plugin) failed perhaps due to plugin dependency issues groovy.lang.GroovyRuntimeException: Conflicting module versions. Module [groovy-all is loaded in version 2.4.8 and you are trying to load version 2.4.12

Jenkins version is 2.3.0

darxriggs commented 4 years ago

@markyjackson-taulia can you please create a release including this fix?

OlivierPT commented 4 years ago

Hi, Actually the release 1.018 should contains the fix but it can't be installed from Jenkins... @markyjackson-taulia, could you make sure the release can be installed please?

glivon commented 4 years ago

Hi @markyjackson-taulia, The plugin release 1.018 is still not visible on jenkins (https://plugins.jenkins.io/groovy-events-listener-plugin/#documentation) Could you please tell us when you plan to deploy it as it has some regression consequences on our production environments.

Thank you