如何离线安装jenkins? [英] How to install jenkins offline?

查看:811
本文介绍了如何离线安装jenkins?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过笔记本电脑成功地在线安装詹金斯.但是,当尝试脱机安装詹金斯时(在无法连接到Internet的我的办公室工作站上),地狱松开了. 通过命令行运行jenkins.war之后,尽管成功安装了jenkins,但缺少了一些插件.我设法从帖子

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?

但是每个插件都必须单独下载,然后复制到我的离线计算机上.所以我有一个窍门. 我将所有文件夹复制到了.jenkins directory(在我的在线安装计算机中)中,然后将它们复制到了我的离线计算机中.哇! 有效! 但是我仍然遇到一个错误:

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

有没有一种方法/网站/pdf/存储库,这是一站式解决方案/可在离线模式下顺利安装(读取所有必需的zip文件)的步骤. (对于Jenkins的创建者,如果不是这样的话,有一个好主意吗?)

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.

要么拥有一个包含所有插件的 .zip文件,要么准备一次,或者手动修复错误.

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

对于您的问题,只需安装以下.hpi文件即可: https: //updates.jenkins-ci.org/latest/javadoc.hpi ( javadoc 与其他插件没有依赖性)

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)

这篇关于如何离线安装jenkins?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆