Preparing Env
Sudo
sudo -s
Checking Java
$ java --version
Installing Jenkins
Add Jenkins Repository
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

Installing
yum install jenkins
PS. If you want to change JENKINS_HOME or JENKINS_PORT, just config as following:
vi /etc/sysconfig/jenkins
Launching Service
service jenkins status
service jenkins start
First Jenkins Job
Costomize Jenkins
Input http://yourJenkinsHost:yourJenkinsPort/ in your web browser:

Wait some moments

Go!!!

网友评论