Ant uses a matrix build [1] with Java8,9,10. You could have a look at its configuration for getting ideas, if you like.
Jan [1] https://builds.apache.org/view/A/view/Ant/job/Ant-Build-Matrix-master-Linux/ > -----Ursprüngliche Nachricht----- > Von: Chia-Hung Lin [mailto:cli...@googlemail.com] > Gesendet: Montag, 26. Februar 2018 23:38 > An: Daniel Pono Takamori > Cc: us...@infra.apache.org; builds@apache.org > Betreff: Re: Does Jenkins support Java version 8? > > I am able to build Jenkins' job with JDK version 1.8 by configuring > through tab General > Execute concurrent builds if necessary > JDK 1.8 > (latest) > > Thanks for help! > > On 24 February 2018 at 17:12, Daniel Pono Takamori <p...@apache.org> > wrote: > > We support a wide variety of JDK varieties; here is the reference > > page: > > > https://cwiki.apache.org/confluence/display/INFRA/JDK+Installation+Mat > > rix You can change the version of the JDK in the 'Job Config' page > for > > your specific build. > > Also I've cc'ed builds@apache.org as that is the build testing/ CI > > appropriate mailing list :) > > > > Cheers! > > > > > > > > On Sat, Feb 24, 2018 at 3:05 PM, Chia-Hung Lin > <cli...@googlemail.com> wrote: > >> When building artifact, the process fails with error > >> > >> [ERROR] Failure executing javac, but could not parse the error: > >> > >> In the console output, Jenkins prints messages > >> > >> > /home/jenkins/tools/java/latest1.7/bin:/usr/local/sbin:/usr/local/bin > >> > :/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/ucb:/ > >> usr/sfw/bin:/usr/ccs/bin > >> > /home/jenkins/tools/java/latest1.7/bin:/usr/local/sbin:/usr/local/bin > >> > :/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/ucb:/ > >> usr/sfw/bin:/usr/ccs/bin > >> > >> That seems that Jenkins build server still support 1.7 instead of > 1.8. > >> If so, any chance to support Java 8? > >> > >> Thanks