Interview Prep/Jenkins/SCM, multibranch & webhooks

GitHub webhook deliveries show `302` or `404` and builds do not start

BeginnerTroubleshootingSCM, multibranch & webhooks
Answer

Likely causes → Missing trailing slash (/github-webhook redirects), wrong path (/github-webhook/ is for the GitHub plugin; generic webhooks use different endpoints), or the reverse proxy rewrites the request.

Diagnose → GitHub repo Settings > Webhooks > Recent Deliveries: response code and body.

Fix → Payload URL https://jenkins.example.com/github-webhook/ with trailing slash, content type application/json; check the proxy forwards POST bodies.

Prevent → Manage webhooks via an org-level hook or GitHub App with a documented URL.

All Jenkins questions Roadmap: Jenkins

More on SCM, multibranch & webhooks