-
Notifications
You must be signed in to change notification settings - Fork 54
Proxy support for browserstack plugin #28
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 support for browserstack plugin #28
Conversation
…plugin has proxy setup
src/main/java/com/browserstack/automate/ci/common/tracking/PluginsTracker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/browserstack/automate/ci/common/tracking/PluginsTracker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/browserstack/automate/ci/common/tracking/PluginsTracker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/browserstack/automate/ci/common/tracking/PluginsTracker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/browserstack/automate/ci/common/tracking/PluginsTracker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/browserstack/automate/ci/common/tracking/PluginsTracker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/browserstack/automate/ci/common/proxysettings/JenkinsProxySettings.java
Show resolved
Hide resolved
src/main/java/com/browserstack/automate/ci/jenkins/AutomateTestAction.java
Outdated
Show resolved
Hide resolved
String proxyHost = jenkinsProxy.name; | ||
int proxyPort = jenkinsProxy.port; |
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.
final
for both...
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.
can be resolved
String username = JenkinsProxySettings.getUsername(); | ||
String password = JenkinsProxySettings.getPassword(); |
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.
final
.... consider final
as const
of JS. or any value which won't be re-assigned further...
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.
can be resolved
|
||
public class JenkinsProxySettings { | ||
|
||
static final ProxyConfiguration jenkinsProxy = Jenkins.getInstanceOrNull() != null ? Jenkins.getInstanceOrNull().proxy : null; |
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.
static final ProxyConfiguration jenkinsProxy = Jenkins.getInstanceOrNull() != null ? Jenkins.getInstanceOrNull().proxy : null; | |
private static final ProxyConfiguration jenkinsProxy = Jenkins.getInstanceOrNull() != null ? Jenkins.getInstanceOrNull().proxy : null; |
Please define correct accessSpecifiers wherever necessary.
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.
LGTM
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.
LGTM
RELATED PR
https://github.com/browserstack/automate-client-java/pull/5/files
Jenkins plugin work behind proxy support (Automate client java changes)