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

Upgrade JPI plugin & fix server task #62

Closed darxriggs closed 4 years ago

darxriggs commented 4 years ago

The gradle-jpi-plugin has been rewritten regarding dependency resolution. Therefore the changes in the dependencies block.

The server task now is working fine again. It got broken when upgrading to gradle-jpi-plugin 0.36.x.

darxriggs commented 4 years ago

@AlbanAndrieu could you please test this version regarding compatibility with Jenkins?

The HPI is accessible on ci.jenkins.io here https://ci.jenkins.io/job/Plugins/job/groovy-events-listener-plugin/job/PR-62/1/.

markjacksonfishing commented 4 years ago

Will merge when you are ready @darxriggs

darxriggs commented 4 years ago

@markyjackson-taulia please merge.

markjacksonfishing commented 4 years ago

Done. I will cut a release this weekend

AlbanAndrieu commented 4 years ago

Hi @darxriggs

I rebuild it locally and I tried with https://ci.jenkins.io/job/Plugins/job/groovy-events-listener-plugin/job/PR-62/1/artifact/build/libs/groovy-events-listener-plugin.hpi

Unfortunately I still have the issue to access other classes

`Loading plugin Groovy Events Listener Plugin v1.015-SNAPSHOT (private-2020-04-17T13:52:57Z-albandrieu) (groovy-events-listener-plugin) failed perhaps due to plugin dependency issues org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: script15871319691091814317535.groovy: 16: unable to resolve class org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode @ line 16, column 1. import org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode; ^

script15871319691091814317535.groovy: 17: unable to resolve class org.jenkinsci.plugins.workflow.actions.WorkspaceAction @ line 17, column 1. import org.jenkinsci.plugins.workflow.actions.WorkspaceAction ^

script15871319691091814317535.groovy: 12: unable to resolve class org.jenkinsci.plugins.workflow.flow.FlowExecution @ line 12, column 1. import org.jenkinsci.plugins.workflow.flow.FlowExecution; ^

script15871319691091814317535.groovy: 13: unable to resolve class org.jenkinsci.plugins.workflow.graph.FlowGraphWalker @ line 13, column 1. import org.jenkinsci.plugins.workflow.graph.FlowGraphWalker; ` I will do more test next week...