Skip to content
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

Add support for proxy #15

Merged
merged 1 commit into from
Jul 3, 2014
Merged

Add support for proxy #15

merged 1 commit into from
Jul 3, 2014

Conversation

tfoel
Copy link

@tfoel tfoel commented Oct 4, 2013

Using the same method as the Java Http library does - it is necessary to use -Dhttp.proxyHost, etc because of the underlying Git library, so now these properties are also picked up by the plugin, giving support for authless proxies.

@buildhive
Copy link

Jenkins » github-oauth-plugin #44 SUCCESS
This pull request looks good
(what's this?)

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@skottler
Copy link
Member

skottler commented Nov 9, 2013

Sorry for neglecting to look at this PR, but thanks for sending it over. I'll test it out tomorrow and merge if all looks good.

* Returns the proxy to be used when connecting to the given URI.
*/
private HttpHost getProxy(String uri) {
if (uri == null) {
Copy link
Member

Choose a reason for hiding this comment

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

I'd rather have this validation be on the UI level. Would you mind doing input validation instead of this kind of check?

Copy link
Author

Choose a reason for hiding this comment

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

I am not sure what you mean - we can remove the check if it seems unnecessary, but do you want anything else to be checked instead?

@layerssss
Copy link

Great work, guys. I came into this issue when my ISP got some problems connecting to github's servers. It would be great to ship this patch, so I can set proxy via java command line params.

just some references here, for other non-java people who need to use proxy with this plugin:

@kohsuke kohsuke merged commit c6ad077 into jenkinsci:master Jul 3, 2014
kohsuke added a commit that referenced this pull request Jul 3, 2014
Conflicts:
	src/main/java/org/jenkinsci/plugins/GithubSecurityRealm.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants