There is a support for Direct connection in Remoting: https://github.com/jenkinsci/remoting/blob/master/docs/inbound-agent.md#connect-directly-to-tcp-port , This connection does not use REST API call, and hence it offers more performance.

      The problem is that there are multiple parameters to be configured (host/port, instance identity, etc.). Kubernetes plugin automates it starting from 2.20.2: https://github.com/jenkinsci/kubernetes-plugin/releases/tag/kubernetes-1.20.2 . It would be great to have a similar feature in Docker Plugin

       

       

          [JENKINS-63724] Add support for Direct JNLP Agent connection

          pjdarton added a comment -

          The docker-plugin already let's you set whatever parameters you like for a JNLP agent, so you can do this already.

          It also has an existing "direct" connection method that can use the Jenkins base "agent" image (no need for inbound or SSH) which may be more efficient still.

          pjdarton added a comment - The docker-plugin already let's you set whatever parameters you like for a JNLP agent, so you can do this already. It also has an existing "direct" connection method that can use the Jenkins base "agent" image (no need for inbound or SSH) which may be more efficient still.

            Unassigned Unassigned
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: