Jenkins is an open source continuous integration tool written in Java. The project was forked from Hudson after a dispute with Oracle. Jenkins provides continuous integration services for software development. It is a server-based system running in a servlet container such as Apache Tomcat. It supports SCM tools including AccuRev, CVS, Subversion, Git, Mercurial, Perforce, Clearcase and RTC, and can execute Apache Ant and Apache Maven based projects as well as arbitrary shell scripts and Windows batch commands. The primary developer of Jenkins is Kohsuke Kawaguchi, and it is released under the MIT License.
Install Jenkins in centos 7 (Master)
1. First install wget
yum install -y wget
2. Add jenkins repository
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
3. Install jenkins
sudo yum install jenkins
4. Install java
sudo yum install java-1.7.0-openjdk
5. Configure firewall
firewall-cmd --zone=public --add-port=8080/tcp --permanent firewall-cmd --reload
6. Start Jenkins
sudo /etc/init.d/jenkins restart systemctl restart jenkins.service
7. Open your browser http://ip-addre:8080
For Debian based systems (Master)
1. Update your system first
# apt-get update # apt-get upgrade
2. You need apache installed configure jenkins
# apt-get install apache2
3. Install Java
# apt-get install openjdk-7-jdk
4. Check you java installed
# java -version
5. Install Jenkins
5.1 Add the key and source list to apt.
# wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
5.2 Create a sources list for Jenkins:
# sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
6. Update the cache
# apt-get update
7. Start The installation
# apt-get install jenkins
8. Start Jenkins
The log file will be placed in /var/log/jenkins/jenkins.log.
9-Open your browser http://ip-addre:8080
That’s it. In our upcoming articles, we will see how to deploy things from master to slave systems.