简体   繁体   中英

How to install jenkins offline?

I could successfully install the jenkins online over my laptop. But while trying to install the jenkins offline (on my office workstation which cannot be connected to internet) the hell breaks loose. After running the jenkins.war over command line although the jenkins was successfully installed yet some of the plugins were missing.I managed to get some help from the post How to install a plugin in Jenkins manually?

But then each of the plugins have to be individually downloaded and then copied over to my offline machine. So I had a trick. I copied all the folders under .jenkins directory (in my online installation machine) and then copied them to my offline machine. Whoa! It worked! But I still get one single error:

Maven Integration Plugin V2.16 .javadoc 1.0 is missing. To fix, install v1.0 or later

So is there a way/website/pdf/repository which is a one stop solution/steps to smoothly install (read has all the required dependencies as a zip) Jenkins in offline mode. (If not, to the creators of Jenkins: Would it be a good idea to have one?)

I'm also searching for an easy way to manage the dependencies between the plugins but as far as I know there is no official tool for that.

Either you have a .zip file with all the plugins which you prepare one time or you fix the errors manually.

For your problem it should be enough to install the following .hpi file: https://updates.jenkins-ci.org/latest/javadoc.hpi ( javadoc has no dependencies to other plugins)

您可以下载所需的.hpi版本的插件,并将其粘贴到jenkins_home的plugins文件夹中,然后重新启动jenkins,然后就可以使用这些插件了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM