Book Image

Jenkins Administrator's Guide

By : Calvin Sangbin Park, Lalit Adithya, Sam Gleske
Book Image

Jenkins Administrator's Guide

By: Calvin Sangbin Park, Lalit Adithya, Sam Gleske

Overview of this book

Jenkins is a renowned name among build and release CI/CD DevOps engineers because of its usefulness in automating builds, releases, and even operations. Despite its capabilities and popularity, it's not easy to scale Jenkins in a production environment. Jenkins Administrator's Guide will not only teach you how to set up a production-grade Jenkins instance from scratch, but also cover management and scaling strategies. This book will guide you through the steps for setting up a Jenkins instance on AWS and inside a corporate firewall, while discussing design choices and configuration options, such as TLS termination points and security policies. You’ll create CI/CD pipelines that are triggered through GitHub pull request events, and also understand the various Jenkinsfile syntax types to help you develop a build and release process unique to your requirements. For readers who are new to Amazon Web Services, the book has a dedicated chapter on AWS with screenshots. You’ll also get to grips with Jenkins Configuration as Code, disaster recovery, upgrading plans, removing bottlenecks, and more to help you manage and scale your Jenkins instance. By the end of this book, you’ll not only have a production-grade Jenkins instance with CI/CD pipelines in place, but also knowledge of best practices by industry experts.
Table of Contents (13 chapters)
12
Index

AWS: FAQs, routing rules, EC2 instances, and EIPs

AWS is used heavily in this book, but it is such a vast ecosystem that we can't sufficiently discuss all the details without taking the focus away from Jenkins. Rather than trying to guess what level of detail we should provide, instead we have dedicated a separate chapter to discussing AWS in depth. Chapter 5, Headfirst AWS for Jenkins, features step-by-step instructions with plenty of screenshots, best practices you should follow, and more. The rest of this book will still cover the AWS topics at a high level, and you can turn to Chapter 5, Headfirst AWS for Jenkins, for a deeper dive.

Now, let's cover some common pitfalls that everyone should watch out for.

EC2 instance types and sizes

You can start with an EC2 instance as small as t2.micro – I used t2.micro for the AWS Jenkins build for this book and it worked just fine. For a production controller, you can start with a larger end of the T2 type...