What is the problem :
Hey, let’s talk about this Jenkins issue where you are not able to download Jenkins plugins behind corporate network. I am trying to explain the best solution for this issue..
Why is the problem : not able to download Jenkins plugins behind corporate network
The problem occurred why because you may have installed Jenkins on a firewall restricted machine. The security is a core concern in this machine. The issue is that the Jenkins instance is trying to find a authorised certificate to access the git repo, since the machine do not have authority to connect to github with a certificate.
Solution to the problem :
Follow the below steps to sort out the issue :
- Log on to your Jenkins GUI
- Select Manage Jenkins
- Choose Manage Plugins
- Select the Advanced tab
- Under Jenkins HTTPS Proxy Configuration, Enter the proxy server host name and port number. The host and port is the same which you use in your company to browse internet OR you can ask your service desk team for the host/port to be used
- Click on the Advanced
- Restart Jenkins, verity that the proxy settings are still set, and perform a workspace load with a Jenkins job to test
- Try adding and downloading the plugin which you wish to, You should be able to download the plugins here after
- Sometimes, i heard people are still not able to download the plugin and the reason is timeout while downloading. Exact error is a read timeout while downloading the plugins in Jenkins
- To resolve this issue just add below line in jenkins/jenkins.xml “-Dhudson.model.UpdateCenter.pluginDownloadReadTimeoutSeconds=120″ to <arguments>.
I hope by now you would have fixed the issues. You can checkout our other blogs on the Jenkins
About the Author
Pawan Sinha is a blogger whose interests in writing blogs on a day to day issues for any engineer working for a software company. To discuss his work, He has a background in Testing/DevOps/Engineering/Cloud/AWS/GCP. His portfolio.