We use Jenkins as our main tool for continuous integration. It's been working fine, but today I found out that two Jenkins can't upgrade/install plugins.
Didn't find a way to fix this because we didn't change the settings and it used to work just fine.
Googling for a while, I found that I can install the plugin manually. let's start.
参考wiki:https://wiki.jenkins-ci.org/display/JENKINS/Plugins
The download URL is at http://updates.jenkins-ci.org/download/plugins/
Log in to the Jenkins server via SSH, we installed Tomcat7 on the Ubuntu server. The Jenkins home folder is located at /usr/share/tomcat7/.jenkins
Go to the plugins directory in the Jenkins home directory
Download the hpi file of the plugin, for example:
- wget http://mirror.xmission.com/jenkins/plugins/pathignore/0.6/pathignore.hpi
Then reload the Jenkins application via Tomcat's Admin page. Go to the Jenkins page to see if the plugin has been installed. I don't see the pathignore plugin being installed, why?
Because the pathignore plugin depends on another plugin ruby-runtime.
Download the ruby-runtime plugin in the same way.
- wget http://updates.jenkins-ci.org/download/plugins/ruby-runtime/0.10/ruby-runtime.hpi
Reloaded Jenkins, it works.
Note that if it is not the way of tomcat, but jenkins runs independently, it is generally in
/var/lib/jenkins/plugins directory.
http://blog.csdn.net/csfreebird/article/details/7899629