I think I found the intended location: ItemListener
/**
* @since 1.446
* Called at the begenning of the orderly shutdown sequence to
* allow plugins to clean up stuff
*/
public void onBeforeShutdown() {
}
which is called from Jenkins from e.g. doSafeExit():
public void cleanUp() {
for (ItemListener l : ItemListener.all())
l.onBeforeShutdown();
Den onsdag 4 november 2015 kl. 09:22:45 UTC+1 skrev Joachim Nilsson:
>
> Hi
>
> How do I detect Jenkins shut-down in my plug-in so I can close down
> connections and thread pools in a nice way?
>
> Regards,
> Joachim
>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/5352e224-b7f1-48e6-ade4-dd0fd4668f6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.