[JIRA] (JENKINS-58942) Configurable webhook URL

0 views
Skip to first unread message

jglick@cloudbees.com (JIRA)

unread,
Aug 14, 2019, 4:59:02 PM8/14/19
to jenkinsc...@googlegroups.com
Jesse Glick created an issue
 
Jenkins / Improvement JENKINS-58942
Configurable webhook URL
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: github-branch-source-plugin
Created: 2019-08-14 20:58
Priority: Minor Minor
Reporter: Jesse Glick

One of the common problems with triggering Jenkins builds from webhooks rather than polling is that notifications can be lost because the server is temporarily down or unresponsive, which you might try to address by having an external service queue up hooks for later delivery. Another is that Jenkins may be behind a firewall and need for hooks to be proxied through some sort of service.

Whatever the case, something other than Jenkins.rootUrl needs to be used to register the webhook, for example on a GitHub organization. While administrators can remember to do this manually, creating an organization folder does this automatically—but only for the default location. There should be a way to override the Jenkins root URL for purposes of hook registration. This is not something you would want to configure in the GUI; it is a property of the environment in which Jenkins is installed, perhaps managed via code.

As an initial step I am just letting the github-branch-source plugin pick up an environment variable for an alternative URL. A possible refinement would be for JenkinsLocationConfiguration to define this (means a newer core dependency), and perhaps for the location to be configurable using JCasC.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jglick@cloudbees.com (JIRA)

unread,
Aug 14, 2019, 5:00:02 PM8/14/19
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Jesse Glick
Change By: Jesse Glick
Assignee: Jesse Glick

jglick@cloudbees.com (JIRA)

unread,
Aug 14, 2019, 5:05:03 PM8/14/19
to jenkinsc...@googlegroups.com
Jesse Glick started work on Improvement JENKINS-58942
 
Change By: Jesse Glick
Status: Open In Progress

jglick@cloudbees.com (JIRA)

unread,
Aug 14, 2019, 5:06:02 PM8/14/19
to jenkinsc...@googlegroups.com
Change By: Jesse Glick
Status: In Progress Review

vivek.pandey@gmail.com (JIRA)

unread,
Oct 1, 2019, 2:26:03 PM10/1/19
to jenkinsc...@googlegroups.com
Vivek Pandey updated Improvement JENKINS-58942
 

Released in github-branch-source 2.5.8.

Change By: Vivek Pandey
Status: In Review Resolved
Resolution: Done
Released As: https://wiki.jenkins.io/display/JENKINS/GitHub+Branch+Source+Plugin
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages