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

start button in Console output does not work if jenkins instance is installed behind reverse proxy (should extract host from Jenkins URL global settings)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • vncviewer-plugin
    • 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()

            tbaum Dimitri Tenenbaum
            tdomzal Tomasz Domżał
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: