Jenkins is an open source server for continuous integration and written by JAVA. This is one of a world famous CI(Continuous Integration) tool. This tutorial guides you through the steps to deploy Jenkins server on RHEL(Red Hat Enterprise Linux) server. The steps are given below.
- Check the JAVA is available on the RHEL server.
# java -version
Output : java version “1.8.0_45”
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
- If there is no JAVA is installed on your, install java and get it confirmed that’s installed.
# yum install java
- Add the Jenkins repository to the host machine, then install the rpm file.
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
- Install Jenkins server
# yum install jenkins
- Adding jenkins to system boot
# chkconfig jenkins on
- Start Jenkins and check the port 8080 is opened from the server side.
# service jenkins start
# netstat -tnlp | grep 8080
- Open your browser and load Jenkins server http://:8080
- After successfully deploy the Jenkins server, you can setup the server to build scala applications. In here the application code will be retrieved from the git server, so git server should have a separate user for jenkins. In order to achieve that, user have to generate a SSH key file from the host machine.
Read More »