jenkinsci / jenkinsci/github-branch-source-plugin
[JENKINS-68633] Misleading "Exception Validating Credentials" in credentials dropdown of Github Branch Source component
- Dominant language
- Java
- Stars
- 217
- Forks
- 398
- Avg merge
- 30m
- Merged PRs (30d)
- 1
Description
The credentials dropdown of a Multibranch Pipeline with GitHub branch source shows "Exception Validating Credentials" when using a GitHub Enterprise Server:
The scenario when this happens:
- the credentials selected are to be used for GitHub Enterprise Server and not `github.com`
- the recommended "Repository HTTPS URL" is selected and properly filled
I believe that the check is still looking at the information in the "Repository Scan - Deprecated Visualization". If you select "Repository Scan - Deprecated Visualization" and select the correct "API Endpoint", then the credentials check will work.
The form validation is a red herring and the true way to validate the credentials against the "Repository HTTPS URL" is to use the *Validate* button. If that works, then the credentials should work for scanning and checkout.
---
Originally reported by
allan_burdajewicz, imported from: Misleading "Exception Validating Credentials" in credentials dropdown of Github Branch Source component
allan_burdajewicz
Raw content of original issue
The credentials dropdown of a Multibranch Pipeline with GitHub branch source shows "Exception Validating Credentials" when using a GitHub Enterprise Server:
The scenario when this happens:
- the credentials selected are to be used for GitHub Enterprise Server and not `github.com`
- the recommended "Repository HTTPS URL" is selected and properly filled
I believe that the check is still looking at the information in the "Repository Scan - Deprecated Visualization". If you select "Repository Scan - Deprecated Visualization" and select the correct "API Endpoint", then the credentials check will work.
The form validation is a red herring and the true way to validate the credentials against the "Repository HTTPS URL" is to use the *Validate* button. If that works, then the credentials should work for scanning and checkout.
1 attachment
- [credentials-issue.png](https://issues.jenkins.io/secure/attachment/58090/credentials-issue.png)
> 
Contributor guide
Assessment
This issue has not been assessed yet.