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 [1] https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins On 14 July 2017 at 02:35, Oleg Nenashev <o.v.nenas...@gmail.com> wrote: > 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 написал: > >> 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: >> * winstone: https://github.com/jenkinsci/winstone/pull/39 >> * extras-executable-war: https://github.com/jenkinsci/e >> xtras-executable-war/pull/11 >> * jenkins: https://github.com/jenkinsci/jenkins/pull/2937 >> >> 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: >> http://repo.maven.apache.org/maven2/org/mortbay/jetty/alpn/a >> lpn-boot/8.1.9.v20160720/alpn-boot-8.1.9.v20160720.jar >> or >> http://repo.maven.apache.org/maven2/org/mortbay/jetty/alpn/a >> lpn-boot/${alpn.version}/alpn-boot-${alpn.version}.jar >> -Xbootclasspath/p: only need to contain the downloaded jar. >> >> Cheers >> -- >> Olivier Lamy >> http://twitter.com/olamy | http://linkedin.com/in/olamy >> > -- > 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+unsubscr...@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 > <https://groups.google.com/d/msgid/jenkinsci-dev/9d92fdca-7b07-4b41-83d7-23e187f04be9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- > Olivier Lamy > http://twitter.com/olamy | http://linkedin.com/in/olamy > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAPoyBqQcR3L%2BY23%3DUZkt9uEw_m%2BtBfWPv3L--Ea00StDaVBaOQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.