jenkins
jenkins copied to clipboard
jenkins_plugin ignores HTTP Proxy configuration
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.
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.
It looks like jenkins_command
might suffer from a similar bug.