What is Jenkins Configuration as Code (JCasC)?
IntermediateConceptJenkins
Answer
JCasC defines the controller's configuration (security realm, authorization, credentials, clouds, global libraries, tool installations) in YAML so a controller can be rebuilt reproducibly and changes are reviewed in Git. The plugin reads the file pointed to by CASC_JENKINS_CONFIG at startup. Secrets are referenced as ${SECRET_NAME} and resolved from env vars, files or a vault.
jenkins:
systemMessage: "Managed by JCasC"
numExecutors: 0
securityRealm:
local:
allowsSignup: false
More on Jenkins
What is Jenkins and how is its architecture organised?BeginnerWhat are executors, nodes and labels in Jenkins?IntermediateWhy should you not run builds on the Jenkins controller?BeginnerHow do inbound (JNLP/WebSocket) and SSH agents connect to the controller?IntermediateWhat is a Jenkinsfile and where does it live?BeginnerDeclarative versus Scripted Pipeline: what are the differences?Intermediate