I come here from this thread.
I’m trying to use
trusty environment exactly as the documentation tell me to do. By installing
openjdk-6-jdk package using
apt addon. For example:
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
This is an example: https://travis-ci.com/saeg/jaguar2/builds/98821170
Notice that for
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.
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.