Jenkins git plugin using only Java 7.1

27 views
Skip to first unread message

Rich Stephens

unread,
Apr 22, 2019, 3:51:40 PM4/22/19
to Jenkins Users
I have a machine that it limited to no higher than Java 7.1. (It's an AIX 6.1 machine)  I am running Jenkins 1.6.4.9 for this reason.

I can get Jenkins running fine, but when I try to install the git plugin, it installs dependencies that require Java 1.8.

I cannot find any information on specifically which plugin dependencies are requiring Java 1.8 or not.

IS there a version of the git (and, by dependency, git-client) plugin that will work with Java 1.7?

If so, How can I get ahold of it and ONLY those versions of the dependencies that are java 1.7 compatible?



R. Tyler Croy

unread,
Apr 22, 2019, 4:03:26 PM4/22/19
to jenkins...@googlegroups.com
(replies inline)

On Mon, 22 Apr 2019, Rich Stephens wrote:

> I have a machine that it limited to no higher than Java 7.1. (It's an AIX 6.1
> machine)  I am running Jenkins 1.6.4.9 for this reason.
>
> I can get Jenkins running fine, but when I try to install the git plugin, it
> installs dependencies that require Java 1.8.
>
> I cannot find any information on specifically which plugin dependencies are
> requiring Java 1.8 or not.
>
> IS there a version of the git (and, by dependency, git-client) plugin that will
> work with Java 1.7?
>
> If so, How can I get ahold of it and ONLY those versions of the dependencies
> that are java 1.7 compatible?


Sounds like you may be running a rather old Jenkins master. Jenkins has
entirely moved to JDK8 as of about two years ago:
https://jenkins.io/blog/2017/04/10/jenkins-has-upgraded-to-java-8/

Trying to dig up older trees of dependency graphs would be a manual process
unfortunately.

--
GitHub: https://github.com/rtyler

GPG Key ID: 0F2298A980EE31ACCA0A7825E5C92681BEF6CEA2

Baptiste Mathus

unread,
Apr 22, 2019, 4:07:24 PM4/22/19
to jenkins...@googlegroups.com
I _think_ you're implying that you're using Java 7 on the agent side (AIX) and you're running the master on Java 8.
If so, do not do it. It is not supported at all, and will cause issues. Issues like, well, these ones if I understand your question.

Switch your master instance to running Java 7 and everything should be good.

Side note: I could check with my past colleagues (not in that company anymore), but pretty sure I was able to run Java 8 on AIX 6.x in the past. So possibly this isn't the official version, but should be doable.

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8651a637-ce86-4571-9221-5c8c81d11c69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rich Stephens

unread,
Apr 23, 2019, 3:18:21 AM4/23/19
to Jenkins Users
No, that’s not what I was implying, unfortunately.

I was telling about actually running Jenkins itself using Java 7 and trying to install the git plugin.

Rich

Rich Stephens

unread,
Apr 23, 2019, 3:18:21 AM4/23/19
to Jenkins Users

Yes I’m aware that Jenkins moved on to Java 8 long ago,
But because of the environment I’m using, I’m restricted to going no higher than Java 7.

I was afraid the answer would be what you are saying, but thanks for the information.

Mark Waite

unread,
Apr 23, 2019, 7:22:18 AM4/23/19
to Jenkins Users
Git plugin 3.9.x does not mandate Java 8 of itself.  The git plugin 3.9.x compile environment checks that the generated byte code is only Java 7.  However, as you have discovered, that does not check that all its dependencies only require Java 7.

I think you're stuck performing a search through the git plugin history to locate a version that does not include any dependencies on a Java 8 component.

Mark Waite

--
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 jenkinsci-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite

Mark Waite

unread,
Apr 23, 2019, 8:12:12 AM4/23/19
to Jenkins Users
The Jenkins platform special interest group in gitter might also have people with related interests, in case you want to try posting your question there.


I've not seen any discussions on this topic in the platform-sig, but there have been discussions about mainframe support and about multi-platform support for Docker images.

Mark Waite


On Tuesday, April 23, 2019 at 6:22:18 AM UTC-5, Mark Waite wrote:
Git plugin 3.9.x does not mandate Java 8 of itself.  The git plugin 3.9.x compile environment checks that the generated byte code is only Java 7.  However, as you have discovered, that does not check that all its dependencies only require Java 7.

I think you're stuck performing a search through the git plugin history to locate a version that does not include any dependencies on a Java 8 component.

Mark Waite

On Tue, Apr 23, 2019 at 2:18 AM Rich Stephens  wrote:

Yes I’m aware that Jenkins moved on to Java 8 long ago,
But because of the environment I’m using, I’m restricted to going no higher than Java 7.

I was afraid the answer would be what you are saying, but thanks for the information.

-- 

--
Thanks!
Mark Waite
Reply all
Reply to author
Forward
0 new messages