Interview Prep/Jenkins/Operations: scale, HA, upgrades & performance

A rogue job with `while true` Groovy loop is consuming controller CPU. Fix now and prevent.

IntermediateScenarioOperations: scale, HA, upgrades & performance
Answer

Situation read → CPS code runs on the controller.

What I'd do →

  1. Abort the build; if it ignores aborts, use /term then /kill.
  2. Find it with a thread dump (/threadDump) showing the CPS VM thread for that job.
  3. Prevent: pipeline-level timeout in the standard template, code review on Jenkinsfiles, keep logic in sh.

Why → Groovy loops do not touch agents; only timeouts and aborts stop them.

Interview tip → Explain CPS VM threads per build.

All Jenkins questions Roadmap: Jenkins

More on Operations: scale, HA, upgrades & performance