Jenkins – Continuous Integration System

Introduction:
Jenkins, formerly known as Hudson, is a quick to use continuous integration system, which can be used to automate the build of your projects at a scheduled time or when a trigger is raised (e.g. a CVS/SVN commit) or simply when the user requests it. The automated, continuous build can help a lot in increasing the productivity and reducing conflicts.

Besides this, Jenkins can also monitor the execution of external jobs, such as cron jobs etc, even those that run on a remote machine.

Benefits:

  • Cron Job Scheduling (At what time we want to run the job)
  • We can execute multiple jobs simultaneously
  • We can configure e-mail notifications
  • We can execute one job after another by making a pipeline

Calsoft Whitepaper: A Comparison of Two Approaches to Build Reliable Distributed File Server

This paper compares the two approaches of providing reliable distributed servers. The first method being server replication and the other is the HA-NFS like approach in which dual ported disks connected to both the server and the backup are used. The paper further also discusses the advantages of the 2 approaches for various scenarios using a variety of parameters.

What is Continuous Integration(CI)?

Continuous Integration (CI) is a development practice that requires developers to integrate code into a shared repository several times a day. Each check-in is then verified by an automated build, allowing teams to detect problems early.

Continuous Integration (CI) is such that, after each and every commit we don’t need to have a manual intervention of running the code or keeping a track of its correct functioning.

CI – Benefits

  • Immediate bug detection
  • No integration step in the lifecycle
  • A deployable system at any given point
  • Record of evolution of the project
  • Generate a (JSON/HTML) Report after specific Run

Installing and Configuring Jenkins:

There are two ways of installing Jenkins:

  • As a Standalone Application
  • As a Service

Installing Jenkins as a Standalone Application
Download Jenkins Web archive from http://jenkins-ci.org/
Native/Supported packages exist for:-

  • Windows
  • Ubuntu/Debian
  • Redhat/Fedora/CentOS
  • Mac OS X
  • openSUSE
  • FreeBSD
  • OpenBSD
  • Solaris/OpenIndiana
  • Gentoo

Installing Jenkins as a standalone application for windows:-

The Web archive can be either executed as a Java application by running:

-Go to the Location of Jenkins.war file through command prompt and execute the below command:-
java -jar jenkins.war

The above command will start a Java application listening by default on port 8080. (This can be changed passing the –httpPort=$HTTP_PORT parameter to the java interpreter):

2. You can log into the Jenkins console by pointing your browser at http://localhost:8080 or http://Jenkins host IP:8080 (e.g : 192.168.1.1:8080)

From the Home page, click on the “Manage Jenkins” link:

From there, you can access to a wide set of options which will let you configure (and update too using plugins) your Jenkins configurations. As first step, we will need to enter the location for our JDK installation and our Maven home. Click on the Configure System link:

You will be taken to the Configuration panel. From there, click on Add JDK. If you have an available JDK on your system, uncheck the “Install automatically” option and enter your JAVA_HOME:

Perform the same steps for configuring Maven: click on Add Maven. If you have an available Maven installation on your system uncheck the “Install automatically” option and enter your Maven Home:

Important Plugins that are available in Jenkins:

From the Home page, click on the “Manage Jenkins” >”Manage Plugins”, from their we can install the Plugins. Few of the important Plugins are listed below
● GitHub plugin
● Build Pipeline Plugin
● Cucumber json test reporting.

Installing Jenkins as a Service

Execute the below command in command prompt to start jenkins as Service:

java -jar <path of the jenkins.war file> –httpPort=<port number>

e.g. :- java -jar C:Program Files (x86)Jenkinsjenkins.war –httpPort=8083

After executing the command we can access the jenkins by pointing the browser to http://localhost:<port number> or http://Jenkins host IP:<port number>

Creating a New Job in Jenkins:

From the left menu select “New Job or New Item”, enter a Name for it and select “Freestyle project”

  • Add the VCS(Versioning Control System) Details
  • Add the commands in “Execute Windows batch command” option (If there are any):
  • Save the Job/Project.
  • To Run the Job/Project. > Go to that project and Click on ‘Build Now’ option.

Build Pipeline View Configuration

  • Click on Ok

To know more email: marketing@calsoftinc.com

Calsoft DevOps Expertise

Calsoft has in-depth expertise in almost all globally used DevOps tools and technologies. Our DevOps consultants assist our customers in their release and deployment processes by consulting and using best DevOps practices and implementation methodology to produce increased speed, efficiency, better quality and reduced cost.

 

Save

Save

Save

Save

 
Share:

Related Posts

Navigating Big Data Storage Challenges

Navigating Big Data Storage Challenges

The last decade or so has seen a big leap in technological advancements. One of the technologies to come up at this time and see a rapid…

Share:

A Deep Dive into 5G Service-Based Architecture (SBA)

5G technology roll out signifies an immense revenue opportunity for telecom industry.

Share:
Technical Documentation

Technical Documentation Review and Tips

Technical reviews are vital for effective and quality documentation. To make this happen, have documentation and its reviews listed as one of the deliverables – just like development or testing. This will place priority on the process, and ensure everyone involved understands the importance of proper and thorough reviews.

Share:
DevOps Revolution

DevOps Revolution: Future Market Trends and Adoption Strategies

The DevOps revolution take in a transformative landscape of software development and IT operations, paving the way for a seamless and collaborative approach to the entire product development lifecycle. DevOps practices involve transformative trends and adoption strategies to enable enterprises to realize agility, reliability, and flexibility in delivering software. Automation, Continuous Integration, and Continuous Delivery (CI/CD) pipelines are becoming recognizable, guaranteeing faster releases and reduced Time-To-Market (TTM). Read the blog to explore the bright future of DevOps in the software industry, and the emerging DevOps trends in 2024.

Share:
Technology Trends 2024

Technology Trends 2024- The CXO perspective

In the rapidly evolving landscape of 2024, technology trends are reshaping industries and redefining business strategies. From the C-suite perspective, executives are navigating a dynamic environment where artificial intelligence, augmented reality, and blockchain are not just buzzwords but integral components of transformative business models. The Chief Experience Officers (CXOs) are at the forefront, leveraging cutting-edge technologies to enhance customer experiences, streamline operations, and drive innovation. This blog delves into the strategic insights and perspectives of CXOs as they navigate the ever-changing tech terrain, exploring how these leaders are shaping the future of their organizations in the era of 2024’s technological evolution.

Share:
Technology Trends 2024

The Winds of Technology Blowing into 2024

As 2023 draws to a close, the digital landscape is poised for a seismic shift in 2024. Generative Artificial Intelligence (Gen AI) continues its integrative streak, disrupting industries from B2B to healthcare. Networking trends emphasize simplicity, while the synergy of cloud and edge computing with Gen AI promises real-time workflows. Quantum computing, cybersecurity, intelligent automation, and sustainable technology are key players, reshaping the technological fabric. Join us as we navigate the transformative currents of 2024, unraveling the impact on enterprises in our forthcoming article. Stay tuned for the tech evolution ahead!

Share: