Computer man
Jenkins

Jenkins is an open source automation tool written in Java with plugins built for Continuous Integration purpose. Jenkins is used to build and test your software projects continuously making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build. It also allows you to continuously deliver your software by integrating with a large number of testing and deployment technologies.

If there is one tool that the vast majority of DevOps teams have deployed, it is Jenkins. There are other tools, but Jenkins is the “Got DevOps?” standard. If Jenkins has a problem, it is one of abundance. The Jenkins plugin category is an embarrassment of riches: As many as 1,500 different plugins are available for Jenkins.

Certainly, Jenkins has taken steps to make plugin selection easier for its users, but the first thing every new user asks is, “Which plugins do I need?” Short answer: As few as possible. Especially at first. Start with a source code management (SCM) repository plugin (GitHub, BitBucket or Local Git, for example) and another plugin for builds (Gradle or Maven, for example). More can be added later, but starting light keeps the build/test environment simple and manageable, and doesn’t load down Jenkins with unnecessary plugins.

Jenkins 2.0 also includes Jenkins Pipeline and a friendlier interface (Blue Ocean). Managed Jenkins and other enterprise features are available from CloudBees Jenkins Enterprise.

Install and Configure Jenkins:-

Step:1 Add Jenkins Repository
Jenkins package is not available in the default CentOS and RHEL repositories. So we need to add jenkins repository using the beneath commands.

[root@server ~]# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo
[root@server ~]# rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.key

Step:2 Install Jenkins and Java
[root@server ~]# yum install jenkins java-1.8.0-openjdk –y

Step:3 Start and Enable Jenkins Service
[root@server ~]# systemctl start jenkins [root@server ~]# systemctl enable jenkins

Step:4 Open the ports (80 and 8080) in OS firewall.
[root@server ~]# firewall-cmd --zone=public --add-port=8080/tcp --permanent
success
[root@server ~]# firewall-cmd --zone=public --add-service=http --permanent
success
[root@server ~]# firewall-cmd --reload
success
[root@server ~]#

Step:5 Access the Jenkins Web portal

Access the URL : http://Ip-Address-of-your-Server:8080


Admin password is created and stored in the log file “/var/log/jenkins/jenkins.log“. Run the below command to get the password.
[root@server ~]# grep -A 5 password /var/log/jenkins/jenkins.log

Copy the password and use it to login then Select the option : Install suggested plugins.

Now, You are ready to use jenkins!
Please email me if you face any issue.

Name:

Email:

Comments:

views
PHP Hits Count