Jenkins是一个开源软件项目,是基于Java开发的一种持续集成工具,用于监控持续重复的工作,旨在提供一个开放易用的软件平台,使软件的持续集成变成可能。
持续的软件版本发布/测试项目。
监控外部调用执行的工作。
添加Jenkins的yum源到系统中,并安装
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins
添加Jenkins的标准版yum源到系统中,并安装
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins
java环境采用openjdk1.7版本以上
yum install java
service jenkins start/stop/restart
chkconfig jenkins on
NOTE: 如果有如下错误信息,请确认JAVA是否安装
Starting jenkins (via systemctl): Job for jenkins.service failed. See ‘systemctl status jenkins.service’ and ‘journalctl -xn’ for details.
[FAILED]
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --reload
firewall-cmd --list-all
setenforce 0
vi /etc/sysconfig/selinux
SELINUX=disabled
http://ServerIP:8080/