Open timja opened 7 years ago
JENKINS-48574 is a related issue, they may be even duplicates depending on the implementation
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.
[Epic: JENKINS-27514]
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
Originally reported by oleg_nenashev, imported from: Jenkins should not deploy installer GUI to headless SSH Agents