Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Jenkins Administrator's Guide
  • Table Of Contents Toc
  • Feedback & Rating feedback
Jenkins Administrator's Guide

Jenkins Administrator's Guide

By : Calvin Sangbin Park , Adithya, Sam Gleske
4.4 (7)
close
close
Jenkins Administrator's Guide

Jenkins Administrator's Guide

4.4 (7)
By: Calvin Sangbin Park , 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)
close
close
12
Index

Outside the Groovy sandbox

A pipeline runs either inside or outside of the sandbox.

Jenkins does not offer protection against dangerous code outside of the sandbox, hence, it is very risky to be outside of the sandbox. Areas outside of the sandbox are meant to be used by administrators for Jenkins administrative tasks, not for running software build/test/release pipelines. Since it has a very limited scope of use, there are only two ways to run outside of the sandbox.

Direct pipeline

A pipeline with its content directly written into the UI, as opposed to a pipeline that loads a Jenkinsfile from an SCM as we saw in Chapter 3, GitOps-Driven CI Pipeline with GitHub, and Chapter 4, GitOps-Driven CD Pipeline with Docker Hub and More Jenkinsfile Features, can run outside of the Groovy sandbox. We can create a new pipeline, then in the Pipeline / Definition drop-down menu, choose Pipeline script to get a textbox titled Script. Afterward, uncheck the box for Use Groovy Sandbox...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY