1,jenkins安装包下载地址:
https://www.jenkins.io/zh/download/
https://mirrors.jenkins-ci.org/redhat/
2,在Centos7上安装openjdk
yum -y install java-11-openjdk-devel
3,安装jenkins的rpm包
rpm -ivh jenkins-2.406-1.1.noarch.rpm
4,关闭系统防火墙
systemctl stop firewalld systemctl disable firewalld
5,启动jenkins
systemctl start jenkins
6,jenkins配置文件路径
vim /etc/sysconfig/jenkins
7,jenkins插件json文件地址:(启动后,点击Manage jenkins-->plugin-->available plugin 操作系统后台会自动创建updates文件夹和default.json文件)
/var/lib/jenkins/updates/default.json
8,配置代理:
系统后台/etc/profile和jenkins需要同时配置
系统后台配置:
export http_proxy=http://username:[email protected]:8080 export https_proxy=http://username:[email protected]:8080 用户密码替换为自己的用户密码,1.1.1.1:8080改为自己的代理IP和端口
jenkins配置:
9,替换阿里源:
访问:https://mirrors.aliyun.com/jenkins/updates/update-center.json 并将内容另存为 default.json 文件
将后台/var/lib/jenkins/updates/ 内 default.json 备份并替换
修改jenkins页面Update Site
Advanced settings最下面https://updates.jenkins.io/update-center.json替换为https://mirrors.aliyun.com/jenkins/updates/update-center.json
并点击Reset to default
10,替换完成后,重启jenkins即可
标签:1.1,default,Centos7,json,阿里,updates,https,jenkins From: https://www.cnblogs.com/yizhipanghu/p/17446422.html