I agree with Baptiste.  Don't mix JDK versions between master and agents.
I had the illusion that the git plugin worked across that environment until
a bug was found which shattered that illusion.

Mark Waite

On Thu, Jan 19, 2017 at 9:51 AM Baptiste Mathus <[email protected]> wrote:

> There's a strong debate about this. I would recommend not doing so (mixing
> versions). I've seen again a ClassFormatError happen in a production system
> because of that (JDK7 on agent, JDK8 on master). It will happen to work,
> but might start failing probably when you don't expect it. This is probably
> not worth the risk.
>
> For your question, just checked again: being a fan of config mgmt myself
> and so, I understand the desire to use official upstream packages. But
> sometimes, you have to diverge for various reasons.
>
> I just tested it and this works totally fine on Ubuntu:14.04 : download
> JDK from
> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
> for your system, uncompress it, add its bin directory in the PATH, done you
> have a JDK8 on 14.04.
>
> And if really, you are using a special system, far more funky than that,
> as Jesse said already: you can then just connect to those using ssh during
> a build, and would work perfectly fine too.
>
> HTH
>
> 2017-01-19 12:42 GMT+01:00 Staffan Forsell <[email protected]>:
>
> Will this also mean that the agents/slaves will require java 8? Will the
> ssh-slaves plugin install a java 8 jre if one is not available?
> We have some slaves building on stuff on Ubuntu 14.04 LTS (and older...)
> which still does does not have a backported java 8 (See
> https://bugs.launchpad.net/trusty-backports/+bug/1368094). This is a
> Ubuntu LTS release with 2 years of support left which is used as the base
> OS for some machines, hence the reluctance to upgrade or use non standard
> package repositories.
> We have java 8 support on mainline but we still need long term support for
> branches of delivered machines and these branches are built using jenkins.
> So basically will it be possible to still run ssh slaves on OS:es
> not-supporting jdk8 by default?
>
> /Thanks
> Staffan
>
> On Tuesday, 17 January 2017 14:48:37 UTC+1, Baptiste Mathus wrote:
>
> Hello,
>
> Please read the announcement on
> https://jenkins.io/blog/2017/01/17/Jenkins-is-upgrading-to-Java-8/,
> especially if you are still running Jenkins on Java 7 VM.
>
> Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/bcdf871b-8cc7-4e29-a139-e85a8b8e37d1%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/bcdf871b-8cc7-4e29-a139-e85a8b8e37d1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6qjH5DQvTpRix_hWcSLm_meuz59L%3D__j7k3GqcwTWH4g%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6qjH5DQvTpRix_hWcSLm_meuz59L%3D__j7k3GqcwTWH4g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGbKhCjLgNydPnyfEQ02ty9VA8WDki3VP-ixQqjJrY7xA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to