Closed Nklya closed 4 years ago
Looks like they recently fixed naming template https://github.com/AdoptOpenJDK/openjdk-build/issues/173
Closing due to inactivity.
If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help!
Thanks, Sous-Chefs
Cookbook version
3.2.1 ? (actually it's 3.2.0 in GitHub master)
Chef-client version
14
Platform Details
Ubuntu 18.04
Scenario:
AdoptOpenJDK changed artifacts naming template and resource adoptopenjdk_install fails. Current version in default attributes is:
default['java']['adoptopenjdk']['8']['x86_64']['openj9']['url'] = 'https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u192-b12/OpenJDK8U-jdk_x64_linux_openj9_8u192b12.tar.gz'
I want to use newer version and set:default['java']['adoptopenjdk']['8']['x86_64']['openj9']['url'] = 'https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u202-b08_openj9-0.12.1/OpenJDK8U-jdk_x64_linux_openj9_8u202b08_openj9-0.12.1.tar.gz'
As you see, there is a new part
_openj9-0.12.1
in the filename. And this schema is used in all builds newer than jdk8u192-b12 You can check at https://adoptopenjdk.net/archive.html?variant=openjdk8&jvmVariant=openj9Steps to Reproduce:
default['java']['adoptopenjdk']['8']['x86_64']['openj9']['url'] = 'https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u202-b08_openj9-0.12.1/OpenJDK8U-jdk_x64_linux_openj9_8u202b08_openj9-0.12.1.tar.gz'
Expected Result:
Actual Result: