Saturday, March 12, 2016

Installing Jenkins on Centos 7

Simple 5 steps to started with Jenkins. 

1. First install it !
# 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

2. Install java
 # yum install java-1.7.0-openjdk
3. Open firewall
# firewall-cmd --zone=public --add-port=8080/tcp --permanent
# firewall-cmd --reload
4. start it !
# systemctl restart jenkins.service

5. Visit it http://ip-addre:8080