-
-
Notifications
You must be signed in to change notification settings - Fork 278
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-6167] Support JNLP slave connection via HTTP proxy #27
Conversation
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
Please don't forget to reference JIRA issues from pull requests. |
@@ -182,8 +186,23 @@ public void run() { | |||
if(!s.endsWith("/")) s+='/'; | |||
URL salURL = new URL(s+"tcpSlaveAgentListener/"); | |||
|
|||
String httpProxy = System.getenv("http_proxy"); |
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.
It also makes sense to allow the definition of this parameter from the command line (e.g. by defining system properties)
I know the patch is very old, hence it is not a good time to review it. Probably, we could merge it to a branch and refactor in order to avoid extra efforts from @shirosaki |
The usual way to have Java applications use proxies would be PR appears to be missing support for proxies requiring authentication. |
123a4e6
to
6177dd1
Compare
Update the patch.
I don't know how to do with proxy authentication. |
We get proxy setting from http.proxyHost property or http_proxy environment variable.
Conflicts: src/main/java/hudson/remoting/Engine.java
What appends if we want to have http_proxy set to be able to do some step action using the proxy but we want to have a direct connexion between master and slave. |
We get proxy setting from http_proxy environment variable.
https://issues.jenkins-ci.org/browse/JENKINS-6167