Skip to content

Conversation

@DanaMaxfield
Copy link
Contributor

Refactor of JenkinsProxyHelper to provide instance methods and deprecate, or possibly remove, static methods.

The user will now be required to provide a valid ProxyConfiguration object as a parameter OR all of the values that would be part of a ProxyConfiguration object. Regardless of which constructor is called, both will leverage getProxyInfo() to return an instance of ProxyInfo.

NOTE: All tests within #4 were run successfully in my local environment. These tests are only for the static methods. If the statics methods are moved vs deprecated, that PR will be closed and the branch removed.

private String ntlmWorkstation;
private ProxyInfo proxyInfo = ProxyInfo.NO_PROXY_INFO;

public JenkinsProxyHelper(final ProxyConfiguration proxyConfiguration, final String url) {

Choose a reason for hiding this comment

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

I think this constructor should be changed to a static method to construct a JenkinsProxyHelper. From the fields listed, the second constructor seems more appropriate and this seems more like it should be a static helper method to construct a JenkinsProxyHelper using the ProxyConfiguration.

Dana Maxfield added 2 commits May 20, 2020 07:23
… (INTIJC-7)

- Change constructor to take Jenkins vs ProxyConfiguration
- Parse Jenkins in private method vs constructor
- Pass url to getProxyInfo() to allow using same object for multiple url's
- Removal of static methods marked Deprecated
- Removal of unneeded 'final' (IDE setting)
@DanaMaxfield DanaMaxfield deleted the INTIJC-7/refactor/JenkinsProxyHelper branch June 2, 2020 12:13
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.

4 participants