Book Image

Learning Continuous Integration with Jenkins

By : Nikhil Pathania
Book Image

Learning Continuous Integration with Jenkins

By: Nikhil Pathania

Overview of this book

In past few years, Agile software development has seen tremendous growth across the world. There is huge demand for software delivery solutions that are fast yet flexible to frequent amendments. As a result, CI and continuous delivery methodologies are gaining popularity. Jenkins’ core functionality and flexibility allows it to fit in a variety of environments and can help streamline the development process for all stakeholders. This book starts off by explaining the concepts of CI and its significance in the Agile world with a whole chapter dedicated to it. Next, you’ll learn to configure and set up Jenkins. You’ll gain a foothold in implementing CI and continuous delivery methods. We dive into the various features offered by Jenkins one by one exploiting them for CI. After that, you’ll find out how to use the built-in pipeline feature of Jenkins. You’ll see how to integrate Jenkins with code analysis tools and test automation tools in order to achieve continuous delivery. Next, you’ll be introduced to continuous deployment and learn 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 a CI service with Jenkins.
Table of Contents (15 chapters)
Learning Continuous Integration with Jenkins
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Configuring our testing server


There are many types of testing that are performed by organizations to ensure they deliver an operational code. However, in this book, we will see only user acceptance testing and performance testing. We will do all this on a single testing server.

I chose an Ubuntu machine as our testing server. We need to set up some software on our testing server that will assist us while we implement Continuous Delivery and Continuous Testing.

Installing Java on the testing server

The testing server will contain an Apache Tomcat server to host applications such as JMeter that run performance testing. Following are the steps to install JRE on the testing server.

  1. To install JRE on the machine, open a terminal and use the following command. This will update all the current application installed on the testing server:

    sudo apt-get update
    
  2. Generally, Linux ships with the Java package. Therefore, check if Java is already installed with the following command:

    java -version
    
  3. If the preceding...