• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • core

      What is wrong?

      BlueOcean button points to host with different port from the one specified in
      ```
      /etc/default/jenkins
      ...
      HTTP_PORT=9001
      ...
      ```
      See attached image.

      How should it be?

      BlueOcean button should point to the same host:port, which Jenkins is using.

      Reproduce

      Install jenkins
      Install BlueOcean plugin.
      Restart jenkins.
      Due to default parameters, everything works fine.
      Open /var/default/jenkins and change HTTP_PORT=8080 to HTTP_PORT=9000
      Restart jenkins.
      Everything still works fine.
      Open /var/default/jenkins and change HTTP_PORT=9000 to HTTP_PORT=9001
      Restart jenkins.
      BlueOcean button does not change its location

      Cause

      Blue ocean uses the Jenkins URL setting extensively for guessing the URL to the server. Many other things, such as email links, also do this. It should be reasonable to expect that Jenkins URL could be set by the environment.

          [JENKINS-40314] Jenkins URL cannot be set via environment

          Gram Gram created issue -
          James Dumay made changes -
          Summary Original: [BlueOcean] Port mismatch between Jenkins and BlueOcean beta New: Jenkins URL cannot be set via environment
          James Dumay made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: blueocean-plugin [ 21481 ]
          James Dumay made changes -
          Description Original: h3. What is wrong?
          BlueOcean button points to host with different port from the one specified in
          ```
          /etc/default/jenkins
          ...
          HTTP_PORT=9001
          ...
          ```
          See attached image.

          h3. How should it be?
          BlueOcean button should point to the same host:port, which Jenkins is using.

          h3. Reproduce
          Install jenkins
          Install BlueOcean plugin.
          Restart jenkins.
          Due to default parameters, everything works fine.
          Open /var/default/jenkins and change HTTP_PORT=8080 to HTTP_PORT=9000
          Restart jenkins.
          Everything still works fine.
          Open /var/default/jenkins and change HTTP_PORT=9000 to HTTP_PORT=9001
          Restart jenkins.
          BlueOcean button does not change its location
          New: h3. What is wrong?
          BlueOcean button points to host with different port from the one specified in
          ```
          /etc/default/jenkins
          ...
          HTTP_PORT=9001
          ...
          ```
          See attached image.

          h3. How should it be?
          BlueOcean button should point to the same host:port, which Jenkins is using.

          h3. Reproduce
          Install jenkins
          Install BlueOcean plugin.
          Restart jenkins.
          Due to default parameters, everything works fine.
          Open /var/default/jenkins and change HTTP_PORT=8080 to HTTP_PORT=9000
          Restart jenkins.
          Everything still works fine.
          Open /var/default/jenkins and change HTTP_PORT=9000 to HTTP_PORT=9001
          Restart jenkins.
          BlueOcean button does not change its location

          h3. Cause

          Blue ocean uses the Jenkins URL setting extensively for guessing the URL to the server. Many other things, such as email links, also do this. It should be reasonable to expect that Jenkins URL could be set by the environment.
          Daniel Beck made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            gram7gram Gram Gram
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: