Skip to content

Conversation

lifeofguenter
Copy link

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).

Copy link
Member

@jglick jglick left a 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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return rootUrl;
return null;

(for clarity)

@joseblas joseblas enabled auto-merge (squash) March 11, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants