Ubuntu 14.04 sometimes provide Java 1.7 instead of 1.8

java

#1

Hello,

I have a strange problem with my project. There are two branches: B1 and B2, they are different because B2 have some fixes, but circle.yml is the same.

B1 builds are okay because Ubuntu container has Java 1.8. I checked this via SSH:

Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-106-generic x86_64)

ubuntu@box12:~$ java -version
java version "1.8.0_102"
Java™ SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot™ 64-Bit Server VM (build 25.102-b14, mixed mode)

B2 build are failing because Ubuntu container has java 1.7 installed. SSH log below:

Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-106-generic x86_64)

ubuntu@box163:~$ java -version
java version "1.7.0_80"
Java™ SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot™ 64-Bit Server VM (build 24.80-b11, mixed mode)

The only difference I see is that B1 works on “box12”, but B2 works on “box163”. Can this be the reason of this strange behavior?

If not, then what else can I look at in order to fix this issue?

Thanks for your help.


#2

This should not be possible, as all 14.04 build containers are launched with the same image.

Can you contact us at support@circleci.com with the build links so we can investigate?


#4

Ok no problem, I’ll send an email.


#5