Interview Prep/CI/CD/Jenkins in Production

A build passes on one agent and fails on another. What do you check?

BeginnerProductionJenkins in Production
Answer

Environment drift: tool versions (java -version, node -v), OS packages, environment variables, leftover workspace files, different cached dependencies in ~/.m2 or ~/.npm, differing proxy/DNS config. Reproduce with cleanWs(), print versions at the start of the job, and then eliminate the drift by running steps in pinned containers on ephemeral agents rather than patching agents by hand.

All CI/CD questions

More on Jenkins in Production