Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64144

Allow Windows JNLP agent connected with websockets to be installed as a service

      When setting up a JNLP agent using websockets and launching the agent using web start on Windows, it doesn't display the File menu containing the 'install as a service' option.

      Enclosed in a screen capture of 2 jnlp agents connected to the same instance.
      The left one is without websockets, the right one has websockets enabled.

          [JENKINS-64144] Allow Windows JNLP agent connected with websockets to be installed as a service

          Ali added a comment -

          Why there is no update for this feature ? 

          Ali added a comment - Why there is no update for this feature ? 

          Joe added a comment -

          Is there a workaround at minimum for installing the agent using WebSockets as a windows service?

          Joe added a comment - Is there a workaround at minimum for installing the agent using WebSockets as a windows service?

          Zed added a comment -

          jthompson is there any update or workaround regarding this issue? Is there some sort of documentation that explains the reason of why you can't install it as a service when using WebSocket?

          Zed added a comment - jthompson  is there any update or workaround regarding this issue? Is there some sort of documentation that explains the reason of why you can't install it as a service when using WebSocket?

          Jeff Thompson added a comment -

          There's no built in workaround or implementation, though there are a number of ways you can roll your own. There are many connection modes with the Remoting library. WebSockets is a new one and no one has implemented the mechanisms to use the "Install as a service" option.

          Jeff Thompson added a comment - There's no built in workaround or implementation, though there are a number of ways you can roll your own. There are many connection modes with the Remoting library. WebSockets is a new one and no one has implemented the mechanisms to use the "Install as a service" option.

          Jesse Glick added a comment -

          Note that https://jenkins.io/jep/230 proposes to remove the affected functionality from core by default (would still be available as a plugin).

          Jesse Glick added a comment - Note that https://jenkins.io/jep/230 proposes to remove the affected functionality from core by default (would still be available as a plugin).

          Kari Niemi added a comment -

          It would be at least nice that  this missing option was documented in any of the "marketing" documents for the websocket option. I just spent 2 hours finding out the reason for the missing File menu and "Install as service", and finding the recommended way for installing the websocket-agent as a windows service. There seems to be none referred -even though WebSocket agent is recommended over the JNLP-agent. Any search terms only return legacy documents which are not working for the websocket agent.

          Kari Niemi added a comment - It would be at least nice that  this missing option was documented in any of the "marketing" documents for the websocket option. I just spent 2 hours finding out the reason for the missing File menu and "Install as service", and finding the recommended way for installing the websocket-agent as a windows service. There seems to be none referred -even though WebSocket agent is recommended over the JNLP-agent. Any search terms only return legacy documents which are not working for the websocket agent.

          Zed added a comment -

          karniemi could you provide the recommended way for installing the websocket as a windows service?

          Zed added a comment - karniemi  could you provide the recommended way for installing the websocket as a windows service?

          Ray Kivisto added a comment -

          Hi everyone, I came across this issue when working with a CloudBees client who was impacted by this, and I was able to successfully get a WebSocket transport Windows agent installed as a Windows service, and I updated our knowledge base with the solution we used.

          Please see point 2 "Using WebSocket transport and creating the service using WinSW" from:

          https://support.cloudbees.com/hc/en-us/articles/217423827

          Ray Kivisto added a comment - Hi everyone, I came across this issue when working with a CloudBees client who was impacted by this, and I was able to successfully get a WebSocket transport Windows agent installed as a Windows service, and I updated our knowledge base with the solution we used. Please see point 2 "Using WebSocket transport and creating the service using WinSW" from: https://support.cloudbees.com/hc/en-us/articles/217423827

          Jesse Glick added a comment -

          As of JENKINS-51820 this issue is obsolete.

          Jesse Glick added a comment - As of JENKINS-51820 this issue is obsolete.

            Unassigned Unassigned
            vlatombe Vincent Latombe
            Votes:
            5 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: