Fork me on GitHub
Suzf  Blog

How-to install jenkins plugin via manual installation

Jenkins 插件安装有两种方式:

  1. 在线安装
  2. 离线安装
  3. 最后重新加载Jenkins

但是又由于网络原因, 一些插件总是难以通过网络在线安装。 Error info

There are dependency errors loading some plugins:

    Pipeline Graph Analysis Plugin v1.3
        Pipeline: Groovy v2.2 failed to load. Fix this plugin first.
    Pipeline: Stage View Plugin v2.4
        pipeline-rest-api v2.4 is missing. To fix, install v2.4 or later.
    GitHub Branch Source Plugin v1.10.1
        github-api v1.75 is missing. To fix, install v1.75 or later.
        github v1.14.1 is missing. To fix, install v1.14.1 or later.
        git v2.3 is missing. To fix, install v2.3 or later.
    Pipeline: Groovy v2.23
        ace-editor v1.0.1 is missing. To fix, install v1.0.1 or later.
    Pipeline: Multibranch v2.9.2
        Pipeline: Groovy v2.17 failed to load. Fix this plugin first.
    GitHub Organization Folder Plugin v1.5
        Pipeline: Groovy v2.14 failed to load. Fix this plugin first.

下面我们通过离线的方式来安装插件。 Jenkins 插件下载地址 http://updates.jenkins-ci.org/download/plugins/ 浏览器安装: 系统管理 -> 插件管理 -> 高级 -> 上传插件 Linux 下CMD安装

[email protected]:~#cd /var/lib/jenkins/plugins
[email protected]:/var/lib/jenkins/plugins# wget http://updates.jenkins-ci.org/download/plugins/ace-editor/1.0.1/ace-editor.hpi
...
Length: 4274860 (4.1M)
Saving to: ‘ace-editor.hpi’

ace-editor.hpi                  100%[======================================================>]   4.08M  13.3KB/s    in 3m 53s  

2016-12-29 13:13:26 (17.9 KB/s) - ‘ace-editor.hpi’ saved [4274860/4274860]


[email protected]appycode:/var/lib/jenkins/plugins# /etc/init.d/jenkins  restart 
[ ok ] Restarting jenkins (via systemctl): jenkins.service.

[0] https://plugins.jenkins.io/ [1] http://blog.csdn.net/jmyue/article/details/9376237

Jenkins ver. 2.32.1