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

issues/238 add jnlp tunnel configuration #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexeygrigorovaurea
Copy link

HI
I'm adding this PR for jnlp tunnels for jenkins installations running behind proxy, where jnlp port is exposed on another host and/or port.
refer to issues/238

@Override
public ComputerLauncher getLauncher() {
return new JNLPLauncher();
return new JNLPLauncher(tunnel, jvmOpts);
Copy link
Owner

Choose a reason for hiding this comment

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

Change here is not needed, real launcher is returned in method before.

Copy link
Author

@alexeygrigorovaurea alexeygrigorovaurea Jul 14, 2018

Choose a reason for hiding this comment

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

without this change tunnel is not there in slave-agent.jnlp endpoint
i guess it is because of this change in 2.83
jenkinsci/jenkins@257cc23
mb we need to update dependecy in pom to 2.83

Copy link
Owner

Choose a reason for hiding this comment

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

so for rendering options on jnlp url they use delegated launcher instead of root launcher now?

cloneJNLPlauncher.setJenkinsUrl(getJenkinsUrl());
cloneJNLPlauncher.setNoCertificateCheck(isNoCertificateCheck());
cloneJNLPlauncher.setNoReconnect(isNoReconnect());

return cloneJNLPlauncher;
}

public String getTunnel() {
Copy link
Owner

@KostyaSha KostyaSha Jul 15, 2018

Choose a reason for hiding this comment

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

Please move getter after coressponding setter. Class organised in the next way: firstly field getters/setters, then overrides and additional methods

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.

2 participants