Builds start twice for each push: once as `main` and once as a pull request, plus once from polling
BeginnerTroubleshootingSCM, multibranch & webhooks
Answer
Likely causes → pollSCM trigger in the Jenkinsfile plus webhooks, and branch discovery set to "All branches" with PR discovery.
Diagnose → Build causes (Started by an SCM change, Branch indexing, Push event to branch main).
Fix → Remove pollSCM when webhooks work; set branch discovery to exclude branches filed as PRs.
Prevent → Template-level conventions and review for triggers.
More on SCM, multibranch & webhooks
`ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.`Beginner`stderr: fatal: could not read Username for 'https://github.com': No such device or address`BeginnerCheckout fails with `No ED25519 host key is known for github.com and you have requested strict checking.`IntermediateGitHub webhook deliveries show `302` or `404` and builds do not startBeginnerWebhook deliveries return `200` but nothing buildsAdvancedMultibranch scan log: `‘Jenkinsfile’ not found` and `Does not meet criteria` for a branch that has a JenkinsfileIntermediate