jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-58971] GitHub Branch Source Plugin allow api.github.com proxy configuration

Open
#1,274 0 comments 0 reactions 0 assignees View on GitHub
component:github-branch-source-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

You can configure a GitHub Enterprise Server for the GitHub Branch Source Plugin.

We'd like to configure a proxy for api.github.com/github.com that looks like my-github-proxy.com.

This URL is normalized as a GitHub Enterpise Server, with any trailing slashes removed:

GitHubConfiguration.java

 

And this causes `getRepositoryUrl` to create a URL like `my-github-proxy.comOrganization/Repo` instead of `my-github-proxy.com/Organization/Repo`:

GitHubSCMSource 

It would be great if we could either not normalize URLs like this, or allow for specifying both a checkout url and an api url.

---
Originally reported by julianvmodesto, imported from: GitHub Branch Source Plugin allow api.github.com proxy configuration


  • status: Open
  • priority: Minor
  • component(s): github-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02

Raw content of original issue

You can configure a GitHub Enterprise Server for the GitHub Branch Source Plugin.

We'd like to configure a proxy for api.github.com/github.com that looks like my-github-proxy.com.

This URL is normalized as a GitHub Enterpise Server, with any trailing slashes removed:

GitHubConfiguration.java

 
And this causes `getRepositoryUrl` to create a URL like `my-github-proxy.comOrganization/Repo` instead of `my-github-proxy.com/Organization/Repo`:

GitHubSCMSource 

It would be great if we could either not normalize URLs like this, or allow for specifying both a checkout url and an api url.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.