Skip to content

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?

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