Configure plugin to handle the job delete event (I need to manage this event: if (event == Event.JOB_DELETED)
Log all events received by plugin simply with:
Delete a Job (tested from both job dashboard or deleting the job inside its configuration page)
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
Steps to reproduce
How can we reproduce the issue
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