-
Bug
-
Resolution: Fixed
-
Minor
-
None
VncViewer Plugin allows accessing to Xvnc desktops via browser.
'Start' button in Console Output for launching noVNC browser generates URL using hostname retrieved with:
InetAddress.getLocalHost().getHostName()
which will not work in general if Jenkins is available to clients under name different than jenkins server hostname.
Attached patch (base: https://svn.jenkins-ci.org/trunk/hudson/plugins/vncviewer/trunk rev 41315) changes noVNC URL build behavior to following:
- if 'Global settings - Jenkins Location - Jenkins URL' is not empty - extracts host from it
- if 'Jenkins URL' is empty or malformed - fall-backs to jenkins server hostname retrieved with InetAddress.getLocalHost().getHostName()