`io.jenkins.plugins.casc.UnknownConfiguratorException: No configurator for the following root elements: sonarGlobalConfiguration`
IntermediateTroubleshootingPlugins, JCasC & Kubernetes agents
Answer
Likely causes → The element is at the wrong level (must be under unclassified:), or the plugin that provides it is not installed.
Diagnose → Check indentation and the plugin list.
Fix →
unclassified:
sonarGlobalConfiguration:
installations:
- name: sonarqube
serverUrl: http://sonarqube.sonarqube.svc:9000
credentialsId: sonar-token
Prevent → Use the exported YAML as a template and validate against the JCasC schema.
More on Plugins, JCasC & Kubernetes agents
Startup log: `SEVERE: Failed Loading plugin Pipeline: Groovy v... (workflow-cps)` with `Update required: Pipeline: Supporting APIs (workflow-support) ... to be updated to ... or higher`IntermediatePlugin fails with `Jenkins (2.426.3) or higher required`BeginnerJCasC fails at startup: `io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.model.Jenkins : agentProtocols`IntermediateJCasC credentials contain the literal text `${GITHUB_TOKEN}` instead of the valueAdvancedKubernetes plugin: `Failure executing: POST at: https://10.96.0.1/api/v1/namespaces/jenkins-agents/pods. Message: pods is forbidden: User "system:serviceaccount:jenkins:jenkins" cannot create resource "pods" in API group "" in the namespace "jenkins-agents".`BeginnerAgent pod events: `Failed to pull image "maven:3.9-eclipse-temurin21": manifest unknown` and the build log says `Unable to pull container image "maven:3.9-eclipse-temurin21". Check if image tag name is spelled correctly.`Beginner