安装jenkins
1.windows安装Jenkins
2.linux之centos安装jenkins
1.1安装java1.8
# 添加jenkins仓库
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
# 安装
yum install epel-release # repository that provides 'daemonize'
yum install java-11-openjdk-devel
yum install jenkins
# 配置文件
/usr/lib/jenkins/ #jenkins安装目录,WAR包会放在这里。
/etc/sysconfig/jenkins #jenkins配置文件 可修改端口 默认是8080
/var/lib/jenkins/ #默认的JENKINS_HOME。
/var/log/jenkins/jenkins.log #日志文件
# 启动jenkins
systemctl start jenkins
3.配置git
系统管理-全局工具配置-git-path(添加为服务器git的地址 which git查找地址)
-----------------------------------------------------------------------------------------------------------------------------------------