Branch: refs/heads/master
Home: https://github.com/jenkinsci/jenkins
Commit: a6f723cef725ea66c992f286516e872857dc6d9d
https://github.com/jenkinsci/jenkins/commit/a6f723cef725ea66c992f286516e872857dc6d9d
Author: Vincent Latombe <[email protected]>
Date: 2024-10-02 (Wed, 02 Oct 2024)
Changed paths:
M core/src/main/java/hudson/logging/LogRecorder.java
M core/src/main/java/hudson/model/AbstractItem.java
M core/src/main/java/hudson/model/Run.java
M core/src/main/java/hudson/model/listeners/SaveableListener.java
M core/src/main/java/jenkins/model/Nodes.java
M test/src/test/java/hudson/logging/LogRecorderManagerTest.java
M test/src/test/java/hudson/model/AbstractItemTest.java
M test/src/test/java/hudson/model/RunTest.java
M test/src/test/java/jenkins/model/NodesTest.java
Log Message:
-----------
Introduce `SaveableListener#onDeleted` (#9743)
* Introduce SaveableListener#onDeleted
Usually `Saveable` objects are written, but it can happen on occasion that they
get deleted, and it wasn't generating an event for every case.
This provides a more fine-grained event that can be handled by implemented
listeners.
In my case, I have a use case in CloudBees CI where I need to clear a cache
entry when a Saveable gets deleted from disk.
* Spotless
* Explicitly test that the user that has performed the change can be obtained
from the Saveable listener.
To unsubscribe from these emails, change your notification settings at
https://github.com/jenkinsci/jenkins/settings/notifications
--
You received this message because you are subscribed to the Google Groups
"Jenkins Commits" 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-commits/jenkinsci/jenkins/push/refs/heads/master/68ea07-a6f723%40github.com.