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

Reference new tcp-agent-listener endpoint #457

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

Conversation

daniel-beck
Copy link
Member

Downstream of jenkinsci/jenkins#5495

It is unclear to me what the compatibility requirements of remoting are. This is a very simple patch that assumes remoting can be older (~minimum version defined in core), but never newer.

Also noting two TODOs where further cleanup can be done once jenkinsci/jenkins#5494 is released or developer documentation migrated away from the wiki.

Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

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

So this will fail when run against older cores. Generally Remoting is intended to be bidirectionally compatible, so you would need to try the new endpoint but fall back to the older one.

Comment on lines 379 to +381
return jenkinsUrl.endsWith("/")
? new URL(jenkinsUrl + "tcpSlaveAgentListener/")
: new URL(jenkinsUrl + "/tcpSlaveAgentListener/");
? new URL(jenkinsUrl + "tcp-agent-listener/")
: new URL(jenkinsUrl + "/tcp-agent-listener/");
Copy link
Member

Choose a reason for hiding this comment

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

Merge conflict with #454.

@daniel-beck daniel-beck marked this pull request as draft May 19, 2021 08:42
@oleg-nenashev oleg-nenashev self-requested a review May 20, 2021 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants