Jenkins builds on one agent fail with "java.io.IOException: No space left on device" while checking out code.

BeginnerTroubleshootingPipeline outages
Answer

Likely causes → Old workspaces, Docker images and build artifacts filled the agent's disk. Jenkins keeps each job's workspace until it's deleted, and Docker layers from builds pile up.

Diagnose →

df -h /var/lib/jenkins /home/jenkins
du -sh /home/jenkins/workspace/* | sort -h | tail
docker system df

Fix → Clean up the biggest workspaces and prune Docker, then retry. Take the agent offline while you clean so it doesn't pick up new builds.

Prevent → Add cleanWs() in a post { always { ... } } block, keep build history short with buildDiscarder(logRotator(numToKeepStr: '20')), set the agent's disk-space monitor threshold so Jenkins marks it offline before it fills, and prefer ephemeral container or cloud agents.

All Real-World Interview questions Roadmap: Interview readiness

More on Pipeline outages