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

Prefer --httpPort from JENKINS_ARGS over HTTP_PORT when the two differ

    • 2.339, 2.332.2

      Steps to reproduce

      On Debian, migrate from an installation with

      HTTP_PORT=9999 # Garbage, only used by old Debian system V init script to check if the port was in use, not to actually start Jenkins
      JENKINS_ARGS="--webroot=/var/cache/$NAME/war --httpPort=8081" # The --httpPort argument is used to actually start Jenkins
      

      Expected results

      Note: These are the actual results when migrating from an installation with

      HTTP_PORT=8081
      JENKINS_ARGS="--webroot=/var/cache/$NAME/war --httpPort=$HTTP_PORT"
      

      (which is the canonical example that we ship).

      The override.conf contains

      [Service]
      Environment="JENKINS_PORT=8081"
      

      Actual results

      The override.conf contains

      [Service]
      Environment="JENKINS_PORT=9999"
      

          [JENKINS-68007] Prefer --httpPort from JENKINS_ARGS over HTTP_PORT when the two differ

          Basil Crow created issue -
          Basil Crow made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Basil Crow made changes -
          Labels New: lts-candidate

          Basil Crow added a comment -

          Originally reported in jenkinsci/packaging#295, which has more context.

          Basil Crow added a comment - Originally reported in jenkinsci/packaging#295 , which has more context.
          Basil Crow made changes -
          Remote Link New: This issue links to "jenkinsci/packaging#296 (Web Link)" [ 27481 ]
          Basil Crow made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          Basil Crow made changes -
          Released As New: 2.339
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]
          Ildefonso Montero made changes -
          Labels Original: lts-candidate New: 2.332.2-fixed
          Basil Crow made changes -
          Link New: This issue is duplicated by JENKINS-68118 [ JENKINS-68118 ]

            basil Basil Crow
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: