Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62543

Redesign SaveableListener to support non-Filesystem storage types

    Details

    • Similar Issues:

      Description

      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.

       

        Attachments

          Activity

          Hide
          stellargo stellargo added a comment -

          @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.

          Show
          stellargo stellargo added a comment - @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.

            People

            • Assignee:
              Unassigned
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: