-
Improvement
-
Resolution: Unresolved
-
Minor
Follow-up to https://github.com/jenkinsci/jenkins/pull/4731/ by stellargo. Current SaveableListener API relies on XmlFile to be passed as one of the arguments: https://javadoc.jenkins.io/hudson/model/listeners/SaveableListener.html It means that the API can support only Filesystem-based storage or, after some modification, other storages which store data as XML.
In https://www.jenkins.io/sigs/cloud-native/pluggable-storage/ there are stories which will require using a listener for non-XML storages, and ideally we need to update this API to support this use-cases.
@oleg-nenashev You mentioned here that we can after some modification use saveable listener. This is actually a problem because since any plugin can implement this, it will depend on the XMLFile. This XMLFile has not only XML data, it also has a path, where it is physically stored. So I would appreciate some help as to how it can be done.
On a side note, I also observed that no listener registered in Jenkins core is actually using the XMLFile.