jenkinsci / jenkinsci/github-branch-source-plugin
[JENKINS-73227] [GithubBranchSourcePlugin] wrong scm url when using Github enterprise specific API
- 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
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
Assessment
This issue has not been assessed yet.