Interview Prep/Jenkins/Plugins, JCasC & Kubernetes agents

`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.

All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Kubernetes agents