-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Jenkins Administrator's Guide
By :

In this chapter, we used JCasC to configure Jenkins to the equivalent state as the Jenkins that we set up from Chapter 1, Jenkins Infrastructure with TLS/SSL and Reverse Proxy, to Chapter 4, GitOps-Driven CD Pipeline with Docker Hub and More Jenkinsfile Features.
We first installed the JCasC plugin and downloaded the current configuration to understand how JCasC codifies Jenkins configuration. Based on the existing configuration, we extracted the relevant parts that define the controller, agents, Docker cloud, and pipeline configurations. We collected the configurations into a file to build a minimal configuration file that defines the Jenkins configuration we want.
We then stopped the existing controller, started a brand-new controller, then applied the configuration using the JCasC plugin. We saw that all the configurations were correctly applied, and also went through the items that couldn't be configured in order to understand the limitations of JCasC....