本文共 966 字,大约阅读时间需要 3 分钟。
在安装jenkins安装时 未安装任何插件,可以使用这个方法安装插件
插件包下载地址,我百度网盘有,这里做个记录
[root@localhost /]# ll总用量 160580-rw-r--r-- 1 root root 164431230 3月 27 11:12 jenkins-plugins.tar.gz[root@localhost /]#[root@localhost /]# ll /var/lib/jenkins/plugins/ #查看Jenkins插件包的目录总用量 0[root@localhost /]# tar xf jenkins-plugins.tar.gz #解压Jenkins插件包[root@localhost /]# [root@localhost /]# ll总用量 160592-rw-r--r-- 1 root root 164431230 3月 27 11:12 jenkins-plugins.tar.gzdrwxr-xr-x 97 jenkins jenkins 8192 12月 8 2017 plugins[root@localhost /]# [root@localhost /]# ll plugins/ |wc -l #插件包共有191个[root@localhost /]# [root@localhost /]# cp -a plugins/* /var/lib/jenkins/plugins/ #解压后的文件拷贝到Jenkins存放插件包的目录[root@localhost /]# [root@localhost /]# ll /var/lib/jenkins/plugins/ |wc -l[root@localhost /]# [root@localhost /]# /etc/init.d/jenkins restart #重启Jenkins服务Restarting jenkins (via systemctl): [ 确定 ][root@localhost /]#
转载地址:http://tvgwb.baihongyu.com/