Build fails with `Container [maven] was terminated (Exit Code: 137, Reason: OOMKilled)`
IntermediateTroubleshootingPlugins, JCasC & Kubernetes agents
Answer
Likely causes → The container's memory limit is lower than the JVM or test suite needs; JVM heap not bounded within the container limit.
Diagnose → kubectl describe pod (Last State: OOMKilled); check MAVEN_OPTS and container limits.
Fix → Raise the memory limit and set MAVEN_OPTS=-XX:MaxRAMPercentage=75 so the JVM respects it; limit Surefire forks (-DforkCount=1).
Prevent → Right-size requests/limits per template from observed usage.
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`Intermediate`io.jenkins.plugins.casc.UnknownConfiguratorException: No configurator for the following root elements: sonarGlobalConfiguration`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".`Beginner