-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: core
-
Environment:core version 1.652
Context
We are writing a plugin to override Node so that it interacts with an external resource management system.
The external system needs to be notified on creation, modification, and deletion of a Node in Jenkins.
Request
There does not appear to be any way to extend the behavior of Jenkins when a Node is deleted. From what I understand, the Computer's doDoDelete() will ask Jenkins.instance to remove it from its Nodes object, but this doesn't invoke any method in Node.
Would it make sense to add an onDelete() method to Node, and have it invoked during Nodes.removeNode()?
Alternately, is there some structure for this behavior that I'm just missing?