Interview Prep/Jenkins/Controller health, disk & upgrades

Builds started before a controller restart show `Resuming build at ...` then fail with `Pausing (Preparing for shutdown)` loops or `Could not find any running agent`

AdvancedTroubleshootingController health, disk & upgrades
Answer

Likely causes → The agents those builds used (Kubernetes pods) were deleted or did not reconnect after the restart, so the resumed builds cannot continue.

Diagnose → Build log after resume; kubectl get pods in agents namespace; whether quiet-down was used before the restart.

Fix → Abort the stuck builds and rerun. Use quiet-down before planned restarts.

Prevent → Graceful maintenance, retry(conditions: [kubernetesAgent(), nonresumable()]) for idempotent stages.

All Jenkins questions Roadmap: Jenkins

More on Controller health, disk & upgrades