Should you manage everything through JCasC, including jobs and credentials?
AdvancedConceptPlugins, JCasC & Jenkins on Kubernetes
Answer
Configuration: yes. Jobs: yes for folders and multibranch/org folder definitions via Job DSL; branch jobs are generated by indexing anyway. Credentials: define them in JCasC but resolve values from a secret store, or better, use a credentials provider plugin (Kubernetes credentials provider, AWS Secrets Manager credentials provider, HashiCorp Vault) so secrets never touch the YAML. Avoid hybrid setups where some admins click in the UI, because the next restart or reload silently overwrites their changes.
More on Plugins, JCasC & Jenkins on Kubernetes
How do you manage plugins in a reproducible way?IntermediateWhat does `jenkins-plugin-cli` resolve for you, and what flags matter?IntermediateWhy should you keep the number of plugins low?BeginnerWhat is JCasC and how is it loaded?BeginnerWhat are the top-level root elements in a JCasC file?IntermediateHow do you inject secrets into JCasC without committing them?Advanced