Interview Prep/CI/CD/Jenkins Build and Agent Failures

`Timeout has been exceeded` after 10 minutes though the step normally takes 3.

IntermediateTroubleshootingJenkins Build and Agent Failures
Answer

Likely causes → Slow dependency download, test hang, resource contention, agent waiting for input (a command prompting interactively).

Diagnose → Use jstack or ps -ef on the agent during the hang; look at the log timestamps (Timestamper plugin).

Fix → Make commands non-interactive (-y, --batch-mode), fix the hang, tune the timeout.

Prevent → Add timestamps and per-stage metrics to detect slow creep.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Jenkins Build and Agent Failures