centos 7 下部署jenkins自动化测试环境
安装jdk:yum install -y java-1.8.0-openjdk-devel.x86_64
安装git: yum install git
添加yum源: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
安装jenkins:yum install jenkins
修改配置:vim /etc/sysconfig/jenkins (修改用户名和端口)
启动jenkins服务:service jenkins start
搜索Publish Over SSH插件并安装