Jenkins on CentOS
From DTO Labs Knowledge Base
Here's how to get a basic Jenkins installation up and running quickly on CentOS.
Setup
- Install using Yum:
[root@ip-10-176-57-29 ~]# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo . . . 2011-09-21 18:36:48 (6.04 MB/s) - `/etc/yum.repos.d/jenkins.repo' saved [76/76] [root@ip-10-176-57-29 ~]# rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key [root@ip-10-176-57-29 ~]# yum -y install jenkins . . . Installed: jenkins.noarch 0:1.431-1.1 Complete!
- Make sure it'll be there when you need it!:
[root@ip-10-176-57-29 ~]# chkconfig --level 2345 jenkins on [root@ip-10-176-57-29 ~]# chkconfig --list jenkins jenkins 0:off 1:off 2:on 3:on 4:on 5:on 6:off
- Start Jenkins:
[root@ip-10-176-57-29 ~]# service jenkins start Starting Jenkins [ OK ]
Test
- Browse to the Jenkin's home page. e.g: http://build.dukesbank.dtolabs.com:8080