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

Jenkins should not deploy installer GUI to headless SSH Agents

      Slave Installer module installs GUI to any SlaveComputer type for which any SlaveInstallerFactory is able to provide SlaveInstallerFactory. For unix agents we have launchd, upstart and systemd factories in modules, which contribute this installer.

      There is no much sense to install GUI to headless agents. According to the analysis by campbellr, such issue may be also one of the culprits of JENKINS-27514, because GUI installation happens synchronously in onOnline() listeners. 

      Code links:

      Proposal

      • Jenkins should not try to install GUI if the agent runs in the headless mode.
      • If required, add forward-compatible API in Jenkins-core for that (e.g. Default method to SlaveComputer or Launcher)

          [JENKINS-47010] Jenkins should not deploy installer GUI to headless SSH Agents

          Oleg Nenashev added a comment -

          JENKINS-48574 is a related issue, they may be even duplicates depending on the implementation

          Oleg Nenashev added a comment - JENKINS-48574 is a related issue, they may be even duplicates depending on the implementation

          Jesse Glick added a comment -

          I think it is not about whether the agent is “headless”, it is whether it is inbound (JNLPLauncher) or not (SSH and many others). So I think the bug is in SlaveInstallerModule.

          Jesse Glick added a comment - I think it is not about whether the agent is “headless”, it is whether it is inbound ( JNLPLauncher ) or not (SSH and many others). So I think the bug is in SlaveInstallerModule .

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

              Created:
              Updated: