jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-73227] [GithubBranchSourcePlugin] wrong scm url when using Github enterprise specific API

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

Description

Hello,

 

I have created an organization folder job on Jenkins with specifying the Github API to our Github Enterprise API which has this format https:////api/v3.

The scan of the jenkinsfiles is correct and in the logs I see it's checking the repositories with the right url: for example : https://///

but once I execute the Jenkinsfile that is on that repository and that contains the step 'checkout scm', I have url 404 because it's poiting to https://// instead of the url as it is in the scan.

---
Originally reported by sirine1994, imported from: [GithubBranchSourcePlugin] wrong scm url when using Github enterprise specific API


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

Raw content of original issue

Hello,

 

I have created an organization folder job on Jenkins with specifying the Github API to our Github Enterprise API which has this format https://<redirect_uri>/<mandatory_path>/api/v3.

The scan of the jenkinsfiles is correct and in the logs I see it's checking the repositories with the right url: for example : https://<redirect_uri>/<mandatory_path>/<repo_owner>/<repository>

but once I execute the Jenkinsfile that is on that repository and that contains the step 'checkout scm', I have url 404 because it's poiting to https://<redirect_uri>/<repo_owner>/<repository> instead of the url as it is in the scan.

environment

```
Jenkins 2.440.3

plugin version : 1789.v5b_0c0cea_18c3
```

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.