Reuse SmartGson.getReader() in JenkinsCiPluginsRepository

JenkinsCiPluginsRepository was reading directly from a URI when fetching
a remote stream rather than relying on the SmartGson.getReader(), which
had exactly the same logic.

Use a unique channel to fetch from a remote source so that mocking
becomes easier and also replacing it with a different transport handler
would not require changes to the JenkinsCiPluginsRepository
implementation.

Change-Id: Ib1f25e7085cafb1c133e1b7e48dc993328489254
(cherry picked from commit b6c8fa3ea94abfdde067621ce71fbb3a52ba26b6)
2 files changed
tree: e984d9234dc36abb7896af7ce924e1d6a38f272e
  1. src/
  2. .gitignore
  3. .zuul.yaml
  4. BUILD
  5. LICENSE
  6. README.md
README.md

plugin-manager

Gerrit web-based plugin manager.

To enable this plugin, please look at the configuration guide