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

Proxy for credentials #10

Merged
merged 1 commit into from Dec 15, 2015
Merged

Proxy for credentials #10

merged 1 commit into from Dec 15, 2015

Conversation

erwannT
Copy link
Contributor

@erwannT erwannT commented Jul 22, 2015

This pull request adds a new section in "Configuration" form in order to configure an internet proxy for SSH connection.
Based on a feature of JSCH, an HTTP, SOCKS4 or SOCKS5 proxy can be configured. A type of proxy, url and port of proxy server, and optionally username and password can be specified.

@jenkinsadmin
Copy link
Member

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


private static final long serialVersionUID = 1L;
public static final int DEFAULT_PORT = 22;
public static final int DEFAULT_TIMEOUT = 300000;
public static final String CONFIG_KEY_PREFERRED_AUTHENTICATIONS = "PreferredAuthentications";
private static final Log LOG = LogFactory.getLog(BapSshHostConfiguration.class);
public static final String HTTP_PROXY_TYPE = "http";
Copy link
Member

Choose a reason for hiding this comment

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

Are these not already defined in the jsch library somewhere?

Choose a reason for hiding this comment

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

does not seem to be definied neither in com.jcraft.jsch.Proxy or sibling classes, nor in java.net.Proxy

@mathieu-pousse
Copy link

I have upgraded to 1.554.3 the oldest LTS that allows the DataBoundSetter. I have cleanup the code accordingly.

Thanks in advance

@slide
Copy link
Member

slide commented Dec 15, 2015

My apologies, I wasn't meaning for you to decompose the whole constructor into DataBoundSetters, just the new field(s) that you were adding. This would maintain the constructor that was already there, but allow for adding new things to the configuration.

@mathieu-pousse
Copy link

ok for you if I revert the constructor only ?

@slide
Copy link
Member

slide commented Dec 15, 2015

Yeah, that should be ok

@mathieu-pousse
Copy link

should be done, i've also squashed everything to one commit

slide added a commit that referenced this pull request Dec 15, 2015
@slide slide merged commit 6411884 into jenkinsci:master Dec 15, 2015
@mathieu-pousse
Copy link

nice, any plan for the release ?

thanks

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

Successfully merging this pull request may close these issues.

None yet

4 participants