yum -y install java-1.7.0-openjdk-devel.x86_64
(1)配置yum源:
     wget  -O  /etc/yum.repos.d/jenkins.repo  http://pkg.jenkins-ci.org/redhat/jenkins.repo
(2)导入rpm密钥
     rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
(3)安装
     yum install -y jenkins
 (4)启动jenkins
     systemctl||service start jenkins
 (5)初始端口8080创建账户。安装插件   构建jenkins项目,配置gitee插件详情见 https://gitee.com/help/articles/4193

原文:https://www.cnblogs.com/yqhl/p/14008818.html