-
Notifications
You must be signed in to change notification settings - Fork 164
JENKINS-45726 Corrected a connectivity error on auth with proxy #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JENKINS-45726 Corrected a connectivity error on auth with proxy #85
Conversation
@@ -185,14 +193,43 @@ public String getGithubServer() { | |||
|
|||
public GitHub getGitHub() throws IOException { | |||
if (this.gh == null) { | |||
|
|||
String host; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixing tabs and spaces. Please convert all tabs to four spaces.
throw new IOException("Invalid GitHub API URL: " + this.githubServer, e); | ||
} | ||
|
||
OkHttpClient client = new OkHttpClient().setProxy(getProxy(host)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixing tabs and spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me. By the way, are you aware you're committing with an email not registered with your GitHub account?
@esteveblanch Apologies for taking a while to get around this. I'm going to test this right now ensuring it doesn't affect existing plugin configurations and upgrades. Once, I verify it upgrades smoothly I'll immediately merge and release. If I find any issues in my testing I will post my feedback here. |
error on auth with proxy See also: * [JENKINS-45726][JENKINS-45726] [JENKINS-45726]: https://issues.jenkins-ci.org/browse/JENKINS-45726
See also #86. GitHub Authentication Plugin 0.28 has been released to the Jenkins Update Center. It will become available roughly within 8 hours from the time of this comment. |
On the GithubAuthenticationToken the GitHub instance was created without the proxy information.
That causes authentication errors when there's a network proxy.