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

Unable to manage JOB_DELETE event #64

Closed fgiacomelli closed 3 years ago

fgiacomelli commented 4 years ago

Steps to reproduce

How can we reproduce the issue

  1. Configure plugin to handle the job delete event (I need to manage this event: if (event == Event.JOB_DELETED)
  2. Log all events received by plugin simply with: image
  3. Delete a Job (tested from both job dashboard or deleting the job inside its configuration page)
  4. Open Log page

Expected behaviour

I should see that some event is logged when the job is deleted

Actual behaviour

In the log I can only see events related to build completion or finalization (I just schedule a build and immediately forced to stop it), but no log for deletion event

Event: RunListener.onCompleted May 07, 2020 4:40:18 PM INFO org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrap invoke Workspace: C:\Jenkins\workspace\test_del May 07, 2020 4:40:18 PM INFO org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrap invoke Event: RunListener.onFinalized May 07, 2020 4:40:18 PM INFO org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrap invoke Workspace: C:\Jenkins\workspace\test_del

Server configuration

Operating system: Windows 10 ver 1909

Jenkins Version: 2.222.3

Plugin Version: 1.014

fgiacomelli commented 4 years ago

some news?

markjacksonfishing commented 3 years ago

I tried reproducing this and could not.