QuestionQ99

DevSecOps Pipeline-Build and Test Stage

Nicholas Cascone was recently hired by an IT company right out of college to work as a DevSecOps engineer. His team lead has asked him to integrate GitHub Webhooks with Jenkins.

To set up this integration, Nicholas logs into his GitHub account and navigates to:

  • Settings > Webhooks > Add Webhook

In the Payload URL field, he needs to enter the Jenkins URL.

Which of the following represents the correct final Jenkins URL format that Nicholas should enter in the Payload URL field on GitHub in order to properly configure the GitHub Webhooks integration with Jenkins?

  • A http://address:port/github-webhook/
  • B http://address:port/GitHub-webhook/
  • C http://address:port/github_webhook/
  • D http://address:port/GitHub.webhook/
Explanation

The Jenkins GitHub plugin exposes a fixed, case-sensitive endpoint — /github-webhook/ (all lowercase, hyphenated, with a trailing slash) — appended to the Jenkins server's base URL and port. GitHub sends webhook payloads to this endpoint whenever configured repository events occur, and Jenkins listens specifically at this path to trigger builds. Any deviation in casing or punctuation (such as GitHub-webhook, github_webhook, or GitHub.webhook) will not match the endpoint registered by the plugin and will cause the webhook delivery to fail.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!