-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make webhook url configurable #310
base: master
Are you sure you want to change the base?
make webhook url configurable #310
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC the patch is fine but the PR title is misleading: -Djenkins.hook.url=https://the.proxy/
already works for register
, just not for unregister
.
rootUrl = Jenkins.get().getRootUrl(); | ||
} | ||
if (rootUrl == null) { | ||
return rootUrl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return rootUrl; | |
return null; |
(for clarity)
in certain setups we separate jenkins from private/public network. We do setup a reverse proxy though for webhooks from public to work. That however means that we need to let jenkins register the public url, instead of the private url.
Fortunately, this is already half-way supported (though most prolly for a different use case).