安裝jdk:yum install -y java-1.8.0-openjdk-devel.x86_64java
安裝git: yum install gitgit
添加yum源:sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repovim
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key插件
安裝jenkins:yum install jenkinsget
修改配置:vim /etc/sysconfig/jenkins (修改用戶名和端口)jenkins
啓動jenkins服務:service jenkins startit
搜索Publish Over SSH插件並安裝io