Interview Prep/Jenkins/Plugins, JCasC & Kubernetes agents

JCasC credentials contain the literal text `${GITHUB_TOKEN}` instead of the value

AdvancedTroubleshootingPlugins, JCasC & Kubernetes agents
Answer

Likely causes → The environment variable or secret file was not available to the controller process, so resolution produced the raw string (JCasC logs a warning), or the value was escaped with ^${...}.

Diagnose → kubectl -n jenkins exec jenkins-0 -- printenv GITHUB_TOKEN, check /run/secrets/GITHUB_TOKEN, controller log for Configuration import: Found unresolved variable GITHUB_TOKEN.

Fix → Provide the secret as env (envFrom: secretRef) or a file in the secrets dir; restart/reload.

Prevent → A startup check that fails if unresolved variables are logged.

All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Kubernetes agents