Interview Prep/Jenkins/SCM, multibranch & webhooks

`hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- https://github.com/org/big-repo.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: ... timeout after 10 minutes`

IntermediateTroubleshootingSCM, multibranch & webhooks
Answer

Likely causes → Huge repository (history, binaries) or slow network; default 10-minute clone/fetch timeout.

Diagnose → Repo size (git count-objects -vH on a local clone), network throughput from agents.

Fix → Use shallow clone (cloneOption(shallow: true, depth: 1, noTags: true, timeout: 30)), narrow refspec to the branch, reference repositories on static agents, Git LFS for binaries.

Prevent → Repo hygiene (no binaries in Git) and a mirror close to the agents.

All Jenkins questions Roadmap: Jenkins

More on SCM, multibranch & webhooks