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

Java version check incorrect in init.d/jenkins

    • 2.368

      The current Ubuntu/Debian LTS installation (2.361.1) includes a startup script under /etc/init.d/jenkins

      The function check_arguments() contains a check on the Java version, which doesn't accept the (supported) Java 17. We agree that under native Debian/Ubuntu this is a minor issue, since this startup script is not supposed to be used anymore, but under Windows WSL it is common to start Jenkins still like that (which currently fails without adapting the script for Java 17)

          [JENKINS-69570] Java version check incorrect in init.d/jenkins

          Tom Van Steertegem created issue -
          Basil Crow made changes -
          Assignee New: Basil Crow [ basil ]
          Basil Crow made changes -
          Component/s New: packaging [ 20120 ]
          Component/s Original: core [ 15593 ]
          Basil Crow made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Basil Crow made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Basil Crow made changes -
          Remote Link New: This issue links to "jenkinsci/packaging#335 (Web Link)" [ 28211 ]

          Basil Crow added a comment -

          Fixed in jenkinsci/packaging#335 toward 2.368.

          Basil Crow added a comment - Fixed in jenkinsci/packaging#335 toward 2.368.
          Basil Crow made changes -
          Released As New: 2.368
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]

          Basil Crow added a comment -

          Proposing for backport to 2.361.2 LTS with the following justification: this is a low-risk and simple fix for an annoying bug that prevents usage with Java 17 on System V init Debian based systems. The "bonus" part of the linked PR (failing fast on Java 1.8 on systemd-based systems) also seems safe and desirable, since failing fast helps users identify problems more easily rather than driving on and failing later on.

          Basil Crow added a comment - Proposing for backport to 2.361.2 LTS with the following justification: this is a low-risk and simple fix for an annoying bug that prevents usage with Java 17 on System V init Debian based systems. The "bonus" part of the linked PR (failing fast on Java 1.8 on systemd-based systems) also seems safe and desirable, since failing fast helps users identify problems more easily rather than driving on and failing later on.
          Basil Crow made changes -
          Labels New: lts-candidate

            basil Basil Crow
            tomvst Tom Van Steertegem
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: