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.
More on Jenkins in Production
How do you run Jenkins for high availability and scale?AdvancedHow do you tune the Jenkins controller JVM and avoid out-of-memory crashes?AdvancedHow do you back up and restore Jenkins?IntermediateHow do you upgrade Jenkins and its plugins safely?IntermediateHow do you harden a Jenkins controller?AdvancedHow do you configure dynamic Kubernetes agents in Jenkins for production use?Intermediate