Interview Prep/CI/CD/Jenkins in Production

A Jenkins queue is growing and builds wait 30 minutes. How do you investigate?

IntermediateProductionJenkins in Production
Answer

Check the queue page for the reason ("Waiting for next available executor", "All nodes of label X are offline"). Then: are agents connected and healthy; is label routing too narrow; is one job hogging all executors (parallel stages with no limit); is the Kubernetes cloud hitting its container cap or failing to schedule pods (kubectl describe pod shows Pending reasons like insufficient CPU); is the controller itself overloaded (GC pauses, disk IO)? Fixes include raising the cloud limit, adding node capacity, limiting parallelism with throttle or lock, and adding builds-per-label metrics.

All CI/CD questions

More on Jenkins in Production