安装JDK参考链接:CentOS7.6安装jdk1.8
安装maven参考链接:CentOS7.6安装maven3.6
1、获取jenkins安装源文件
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
2、导入公钥 (如果报错,多执行几次就好了)
yum -y update nss
rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
3、安装Jenkins
yum install -y jenkins
4、修改端口
vim /etc/sysconfig/jenkins
5、启动,并加入开机启动,浏览器访问:http://安装服务IP地址:10001
service jenkins start
systemctl enable jenkins.service
6、重启、停止命令
service jenkins restart
service jenkins stop
7、配置jdk、maven、svn
8、配置Publish over SSH