Tuesday, August 26, 2014

Install Jenkins in CentOS Linux


Install Jenkins in CentOS Linux

Jenkins
Jenkins is successor of Hudson project. It serves as continuous integration platform. Jenkins integrates with CVS, SVN, Git, Mercurial hg. Supports MVN, cron-like scheduling, shell commands, remote deployment and more.

Install Oracle Java
JBoss requires original Oracle Sun Java or compatible VM. As first step, Install Oracle Java.

Install Jenkins
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins

Change port
/etc/sysconfig/jenkins
JENKINS_AJP_PORT="7009"
JENKINS_PORT="7070"

Start Jenkins
service jenkins start

Configure authentication
http://www.linuxfunda.com/2013/11/17/how-to-install-and-configure-jenkins-on-centos-6-4/

Done

Resources
src: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions

Further step:

Install Mercurial
yum search mercurial
yum install mercurial.x86_64

No comments: