Book Image

Learning Continuous Integration with Jenkins - Second Edition

By : Nikhil Pathania
Book Image

Learning Continuous Integration with Jenkins - Second Edition

By: Nikhil Pathania

Overview of this book

In past few years, agile software development has seen tremendous growth. There is a huge demand for software delivery solutions that are fast yet flexible to numerous amendments. As a result, Continuous Integration (CI) and Continuous Delivery (CD) methodologies are gaining popularity. This book starts off by explaining the concepts of CI and its significance in the Agile. Next, you'll learn how to configure and set up Jenkins in many different ways. The book exploits the concept of "pipeline as code" and various other features introduced in the Jenkins 2.x release to their full potential. We also talk in detail about the new Jenkins Blue Ocean interface and the features that help to quickly and easily create a CI pipeline. Then we dive into the various features offered by Jenkins one by one, exploiting them for CI and CD. Jenkins' core functionality and flexibility allows it to fit in a variety of environments and can help streamline the development process for all stakeholders. Next, you'll be introduced to CD and will learn how to achieve it using Jenkins. Through this book's wealth of best practices and real-world tips, you'll discover how easy it is to implement CI and CD using Jenkins.
Table of Contents (18 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Index

Creating a performance test using JMeter


In this section, we will learn how to create a simple performance test using the JMeter tool. The steps mentioned should be performed on your local machine. The following steps are performed on a machine with Ubuntu 16.04.

Installing Java

Follow the given steps to install Java:

  1. Update the package index:
sudo apt-get update
  1. Next, install Java. The following command will install the JRE:
sudo apt-get install default-jre
  1. To set the JAVA_HOME environment variable, first get the Java installation location. Do this by executing the following command:
sudo update-alternatives --config java
  1. Copy the resultant path and update the JAVA_HOME variable inside the /etc/environment file.

Installing Apache JMeter

Follow the given steps to install Apache JMeter:

  1. Move to the /tmp directory:
cd /tmp
  1. Download apache-jmeter-3.1.tgz, or whichever is the latest stable version, from http://jmeter.apache.org/download_jmeter.cgi:
wget https://archive.apache.org/dist/jmeter/binaries/apache...