Using HTTP/2 on the same port as HTTPS doesn't seem to be possible at the moment. Jetty itself does seem to support this, according to https://www.eclipse.org/jetty/documentation/9.4.x/http2-configuring.html

      Jenkins does not start when using the same port with --httpsPort and --http2Port.

          [JENKINS-46931] Allow using HTTP/2 on the same port as HTTPS

          Jordan added a comment - - edited

          If this could be added, this would be great, either that or expand the check for `--httpsRedirectHttp` to include either `--httpsPort` or `--http2Port` (as that is the only reason I need to enable both as I wish to have http2 but also meet the demands for https redirect to be enabled) or make both `--httpsPort` and `--http2Port` reference the same thing and depreciate `--http2Port`

          Jordan added a comment - - edited If this could be added, this would be great, either that or expand the check for `--httpsRedirectHttp` to include either `--httpsPort` or `--http2Port` (as that is the only reason I need to enable both as I wish to have http2 but also meet the demands for https redirect to be enabled) or make both `--httpsPort` and `--http2Port` reference the same thing and depreciate `--http2Port`

            Unassigned Unassigned
            jmairboeck Joachim Mairböck
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: