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

Upgrading Jenkins


There are two kinds of Jenkins releases: LTS Release and Weekly Release. The Jenkins Weekly Release contains new features and bug fixes, whereas the LTS (Long Term Support)Release are special releases that are considered stable over a period of 12 weeks. It's recommended that you always choose an LTS Release for your Jenkins server:

Jenkins download page

Jenkins by itself notifies you when there is a newer version available (provided your Jenkins server has access to the internet), as shown in the following screenshot:

Jenkins notification about the availability of a new version

Upgrading Jenkins running on Tomcat Server

In the following section, we will learn to update Jenkins running inside a servlet (Apache Tomcat). Follow the given steps:

  1. Log in to your Apache Tomcat server machine as the root user.
  2. Download the latest (LTS) version of jenkins.war under the /tmp directory using the following command:
         cd /tmp

         wget http://mirrors.jenkins.io/war-stable/latest...