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

BUILD_URL doesn't contain hostname if config hasn't been saved after initial startup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Environment:
      Across platforms. Tested on Linux and Mac OS X
    • Similar Issues:

      Description

      When you initially start Jenkins without having done any configuration changes the hostname and port of the jenkins-ci instance is automatically put into the configuration. But as long as you do not run 'manage jenkins' and save the config data, at least the $BUILD_URL variable doesn't contain the hostname and port.

      Jenkins should use the auto-detected port immediately and shouldn't require a save of the configuration first.

        Attachments

          Issue Links

            Activity

            Hide
            sti Sami Tikka added a comment -

            What should Jenkins use as its own address if an address has not been provided?

            Show
            sti Sami Tikka added a comment - What should Jenkins use as its own address if an address has not been provided?
            Hide
            whimboo Henrik Skupin added a comment -

            Jenkins correctly auto-detects the hostname and port as I have mentioned in my initial comment. The problem is the value of the $BUILD_URL variable, which is empty.

            Show
            whimboo Henrik Skupin added a comment - Jenkins correctly auto-detects the hostname and port as I have mentioned in my initial comment. The problem is the value of the $BUILD_URL variable, which is empty.
            Hide
            danielbeck Daniel Beck added a comment -

            Jenkins auto-detects by examining the current request. There's no such 'current request' in the context of a build.

            Show
            danielbeck Daniel Beck added a comment - Jenkins auto-detects by examining the current request. There's no such 'current request' in the context of a build.

              People

              • Assignee:
                Unassigned
                Reporter:
                whimboo Henrik Skupin
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: