How does Jenkins report build status back to GitHub?
IntermediateConceptMultibranch, organization folders & webhooks
Answer
GitHub Branch Source automatically sets a commit status (or a Checks run with the GitHub App and the GitHub Checks plugin) named continuous-integration/jenkins/branch or .../pr-merge, updated when the build starts and finishes. Branch protection then requires that check. You can add custom statuses with githubNotify or publish per-stage checks with publishChecks. Statuses fail silently if the credential lacks repo:status permission or the App lacks "Commit statuses: write".
More on Multibranch, organization folders & webhooks
How does a multibranch pipeline work?BeginnerWhat is branch indexing and what triggers it?BeginnerWhat are the discovery traits in the GitHub branch source?IntermediateWhat does the fork PR trust setting protect against?AdvancedWhat environment variables are set for PR builds?BeginnerWhat is an organization folder?Intermediate