Steps to reproduce:
- Go to Manage plugins and install config-file-provider plugin.
- DO NOT restart.
- See error in logs (attached together with Support Bundle).
- plugin is not available (not accessible in configuration or folder) until Jenkins is restarted.
- Plugin is always available without a restart.
The constructor for ConfigFilesManagement class is calling static method GlobalConfigFiles.get(), which is requesting Jenkins for an instance of this class. Sometimes this seems to be made before Jenkins actually processes the class.