Trending Technology Machine Learning, Artificial Intelligent, Block Chain, IoT, DevOps, Data Science

Recent Post

Codecademy Code Foundations

Search This Blog

Jenkins in DevOps

Jenkins is an open-source DevOps testing tool. It can be used to automate all types of tasks such as building, testing, and deploying software.

It is a powerful application that allows continuous integration and continuous delivery of projects, regardless of the platform you are working on.It is a free source that can handle any kind of build or continuous integration.

In this blog, we would explain how you can use Jenkins to build and test your software projects continuously.

This blog is going to help all those software testers who would like to learn how to build and test their project continuously in order to help the developers to integrate the changes to the project as quickly as possible and obtain fresh builds.

This tool allows developers to quickly find and solve defects in theirs code base to automate testing of their builds.

Features of Jenkins :

Provides support to scale out to a large number of nodes and distribute the workload equally.

Compatible with all OS and version of Linux, Mac OS or Windows.

It offers easy installation as Jenkins comes as a WAR file. All user needs to do is to drop WAR into your JEE container and your setup up ready to run.

Jenkins can be easily set-up and configured with the help of its web interface.

Why Jenkins ? :

Jenkins is a software that allows continuous integration (CI).

Jenkins  will be installed on a server where the central build will take place. The following steps demonstrates a very simple workflow of how Jenkins works :
  1. Developers check their source code.
  2. Jenkins will pick up the changed course code.
  3. It will then trigger the build and run any test if required.
  4. The build output will be available in Jenkins dashboard.
  5. Automatic notification can also be sent back to developer.
What is CI ?

Continuous Integration is a development practice that requires developers integrate code into a shared repository at regular intervals. This concept was meant to remove the problem of finding later occurrence of issues in the build life cycle. Continuous integration requires the developers to have frequent builds. The common practice is that whenever a code commit occurs, a build should be triggered.

System Requirements :

JDK : JDK 1.5 or above
 Memory:2 GB RAM (recommended)
OS version: Jenkins can be installed on Windows, Ubuntu/Debian, Red Hat/Fedora/CentOS,
                Mac OS X, openSUSE, FReeBSD, openBSD, Gentoo.
Java Container: The WAR file can be run in any container that supports Servlet.


Jenkins Download :
  • Click the Long-Term Support Release tab in the download section.
  • Click the link "Older but stable version" to download the Jenkins war file.

Starting Jenkins :

Open the command prompt.

From the command prompt, browser to the directory where the Jenkins. War file is present.

Run the following command
     D:\>Java -jar Jenkins.war

After the command is run, various tasks will run, one of which is the extraction of the war file which is done by an embedded webserver called winstone.
   D:\>Java -jar Jenkins.war Running from: D:\Jenkins.war
   Webroot: $user.home/ .Jenkins
    Oct 30, 2018 5:45:55 PM winstone.Logger loginternal
    INFO: Beginning extraction from war file

Once the processing is complete without major errors, the following line will come in the output of the command prompt.
     INFO: Jenkins is fully up and running

No comments:

Post a Comment

Popular Articles