Deploying Jenkins On CentOS

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
Deploying Jenkins On CentOS_第1张图片
Paste_Image.png

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:

Deploying Jenkins On CentOS_第2张图片
Paste_Image.png

Wait some moments

Deploying Jenkins On CentOS_第3张图片
Paste_Image.png

Go!!!

Deploying Jenkins On CentOS_第4张图片
Paste_Image.png

你可能感兴趣的:(Deploying Jenkins On CentOS)