-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
My team is using Jenkins to manage out Continuous Delivery pipelines. This means infrastructure is created and maintained through the life of a service in different environments. It would be useful if upon a job becoming an orphan we could execute something that destroys the infrastructure.
It looks like OrphanedItemStrategy is already an extension point, so you should be able to implement a custom strategy that does what you'd like. I don't know if what you had in mind would be generally applicable to other users of the plugin, but you can always create a new plugin with the custom extension. The Jenkins developer documentation might be helpful, and contributions are always welcome.