jenkins icon indicating copy to clipboard operation
jenkins copied to clipboard

jenkins_plugin ignores HTTP Proxy configuration

Open giorgian opened this issue 7 years ago • 2 comments

Cookbook version

5.0.0

Chef-client version

12.19.36

Platform Details

Centos 7

Scenario:

jenkins_plugin ignores HTTP Proxy configuration

Steps to Reproduce:

  • Setup an HTTP Proxy in jenkins -> PluginManager -> Advanced (or, execute Jenkins.instance.proxy = new ProxyConfiguration('myhost', 8888);
  • have chef run jenkins_plugin 'somePlugin'

Expected Result:

Jenkins installs the plugin

Actual Result:

Chef tries to download update-center.json ignoring the Proxy settings, thus failing.

To me, the cookbook should either get the proxy configuration from jenkins (via Jenkins.instance.proxy) and use it, or have Jenkins install plugins its way.

giorgian avatar Apr 14 '17 07:04 giorgian

Another possibility would be to add a feature to manage proxy configuration for plugin manager explicitly and both set it on Jenkins and use it for manual retrieval of information in the cookbook.

giorgian avatar Apr 16 '17 07:04 giorgian

It looks like jenkins_command might suffer from a similar bug.

Dispader avatar Apr 24 '18 20:04 Dispader