Ya, deleting a build would trigger listener and for that RunListener.onDeleted() can be used.
But for deleting builds from external workspace manager, few builds will be picked according to the filters. And that builds will be deleted by calling delete() method, if I am not wrong. On Friday, 5 April 2019 10:44:43 UTC+5:30, Jesse Glick wrote: > > On Thu, Apr 4, 2019 at 2:51 PM Nisarg Shah <nissh...@gmail.com > <javascript:>> wrote: > > discarding of workspaces when builds are discarded is responsibility of > 'external-workspace-manager'. > > Yes, I would think so. > > > And advanced Build Discarder should be notified to do the additional > cleanup ? > > Not quite sure what that means. The build discarder just needs to pick > some builds to delete, and delete them. Deleting a build triggers some > listeners. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/873a3a7c-9ab2-4142-8912-dde8aa1b0af2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.