Interview Prep/Jenkins/Plugins, JCasC & Jenkins on Kubernetes

How do you test a JCasC change before applying it to production?

AdvancedConceptPlugins, JCasC & Jenkins on Kubernetes
Answer
  1. Build the controller image with the change and start it locally or in a staging namespace with the same JCasC and dummy secrets.
  2. Check startup logs for ConfiguratorException and unknown attributes.
  3. Use the JCasC schema (/configuration-as-code/schema) for editor validation.
  4. Run a smoke pipeline that exercises agents, credentials and libraries.
  5. Merge, then roll the production controller (restart or reload).

Some teams run a CI job that starts Jenkins in a container with the new YAML and fails if the log contains ConfiguratorException.

All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Jenkins on Kubernetes