Interview Prep/Jenkins/SCM, multibranch & webhooks

`GitHub API Usage: Current quota for Github API usage has 4 remaining (1 over budget). Next quota of 5000 in 38 min. Sleeping for 37 min.`

IntermediateTroubleshootingSCM, multibranch & webhooks
Answer

Likely causes → Many multibranch scans with a personal token, frequent periodic scans, organization folders scanning hundreds of repos.

Diagnose → Scan logs show rate limit messages; check scan intervals across folders.

Fix → Switch to a GitHub App credential (higher, per-installation limits), reduce periodic scans to daily, rely on webhooks, choose the "Throttle at/near rate limit" API usage strategy.

Prevent → Credential choice and scan intervals standardized in Job DSL.

All Jenkins questions Roadmap: Jenkins

More on SCM, multibranch & webhooks