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

Jenkinsfile change is not picked up; the old pipeline runs.

BeginnerTroubleshootingJenkins Build and Agent Failures
Answer

Likely causes → Job reads a different branch or script path; "Replay" used; webhook not firing; Lightweight checkout cache.

Diagnose → Check "Script Path" and branch; look at build log's checkout commit SHA.

Fix → Fix path/branch, rescan the multibranch job, trigger a build.

Prevent → Use multibranch jobs with webhooks and print GIT_COMMIT at pipeline start.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Jenkins Build and Agent Failures