I come here from this thread.
I’m trying to use openjdk6 in trusty environment exactly as the documentation tell me to do. By installing openjdk-6-jdk package using apt addon. For example:
addons:
apt:
packages:
- openjdk-6-jdk
jdk: openjdk6
But the problem is that install-jdk.sh script is executed with an invalid parameter --feature "6". This script terminate the build execution with the following error message:
Expected feature release number in range of 9 to 13, but got: 6
The command "~/bin/install-jdk.sh --target "/home/travis/openjdk6" --workspace "/home/travis/.cache/install-jdk" --feature "6" --license "GPL" --cacerts" failed and exited with 3 during .
I was expecting Travis CI to not execute install-jdk.sh for openjdk6.
This is an example: https://travis-ci.com/saeg/jaguar2/builds/98821170
Notice that for openjdk7, oraclejdk8 and oraclejdk9 the script install-jdk.sh is not executed at all. But the jdk_switcher is executed instead. After Installing JDK phase, Installing APT Packages phase is executed installing OpenJDK 6.
Again, for openjdk6 I was expecting Installing APT Packages phase to run before Installing JDK phase and this later phase to only execute jdk_switcher use openjdk6.
Regards
Roberto