Jetty Http2 connector for Jenkins

331 views
Skip to first unread message

Olivier Lamy

unread,
Jul 11, 2017, 1:18:03 AM7/11/17
to jenkin...@googlegroups.com
Hi
I found a bit of time to finsih the changes to add http2 capability for Jenkins via Jetty.
So it's 3 prs to review:

To test this http2 connector you need to start jenkins adding alpn-boot in -Xbootclasspath (alpn is not available in java8 but should be in java9 but that's an other story :-) )

In my case, I run with such command:

/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java -Xbootclasspath/p:/Users/olamy/repository/org/mortbay/jetty/alpn/alpn-boot/8.1.11.v20170118/alpn-boot-8.1.11.v20170118.jar -jar target/jenkins.war --http2Port=9090

Note the option --http2Port (using default home made generated ssl certificate)
The alpnboot version depends on your jdk version.
I usually find it looking at the mapping in the jetty pom: https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/pom.xml

You will have profiles such:
    <profile>
      <id>8u121</id>
      <activation>
        <property>
          <name>java.version</name>
          <value>1.8.0_121</value>
        </property>
      </activation>
      <properties>
        <alpn.version>8.1.11.v20170118</alpn.version>
      </properties>
    </profile>

So you have the alpn.version to use.
Then get it:
or 
-Xbootclasspath/p:  only need to contain the downloaded jar.

Cheers
--

Oleg Nenashev

unread,
Jul 13, 2017, 12:35:13 PM7/13/17
to Jenkins Developers
Even if alpn is not available by default, it will be a useful enhancement.
Let's see if we can land it till the next LTS baseline cut-off.

BR, Oleg

вторник, 11 июля 2017 г., 7:18:03 UTC+2 пользователь Olivier Lamy написал:

Olivier Lamy

unread,
Jul 16, 2017, 8:58:09 PM7/16/17
to jenkin...@googlegroups.com
Hi
Once all prs are merged I will improve the wiki page here [1] to add http2 parameter and explain how to include alpn.

Cheers
Olivier


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/9d92fdca-7b07-4b41-83d7-23e187f04be9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Olivier Lamy

unread,
Jul 21, 2017, 1:43:39 AM7/21/17
to jenkin...@googlegroups.com
Hi
It's now merged.
Thanks guys for the reviews.
I have added documentation to the page. let me know if this makes sense especially how to get the right alpn-boot jar.
Maybe next week, I will try to provide a more easy way to get this jar. (some tools to automatically download it)
Cheers
Olivier

Oleg Nenashev

unread,
Jul 24, 2017, 8:12:22 AM7/24/17
to Jenkins Developers
The feature has been released in 2.71
Thanks for doing it, Oliver

пятница, 21 июля 2017 г., 8:43:39 UTC+3 пользователь Olivier Lamy написал:
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages