Skip to content

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

Merged
merged 2 commits into from
Oct 1, 2017

Conversation

esteveblanch
Copy link
Contributor

On the GithubAuthenticationToken the GitHub instance was created without the proxy information.
That causes authentication errors when there's a network proxy.

@@ -185,14 +193,43 @@ public String getGithubServer() {

public GitHub getGitHub() throws IOException {
if (this.gh == null) {

String host;
Copy link
Member

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));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixing tabs and spaces.

Copy link
Member

@samrocketman samrocketman left a 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?

@samrocketman
Copy link
Member

@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.

@samrocketman samrocketman merged commit ed74c06 into jenkinsci:master Oct 1, 2017
samrocketman added a commit that referenced this pull request Oct 1, 2017
error on auth with proxy

See also:
* [JENKINS-45726][JENKINS-45726]

[JENKINS-45726]: https://issues.jenkins-ci.org/browse/JENKINS-45726
@samrocketman
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants