Skip to content

Commit

Permalink
JDK 22 EA does not have 22 OpenJDK suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
Karm committed Oct 30, 2023
1 parent 23721bb commit 991bd2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkins/jobs/builds/Constants.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ class Constants {
fi
curl -OJLs https://api.adoptium.net/v3/binary/latest/${JDK_VERSION}/${JDK_RELEASE}/linux/${JDK_ARCH}/jdk/hotspot/normal/eclipse
curl -OJLs https://api.adoptium.net/v3/binary/latest/${JDK_VERSION}/${JDK_RELEASE}/linux/${JDK_ARCH}/staticlibs/hotspot/normal/eclipse
tar -xf OpenJDK${JDK_VERSION}*-jdk*
tar -xf OpenJDK*-jdk*
export JAVA_HOME=$( pwd )/$( echo jdk-${JDK_VERSION}* )
if [[ ! -e "${JAVA_HOME}/bin/java" ]]; then
echo "Cannot find downloaded JDK. Quitting..."
exit 1
fi
tar -xf OpenJDK${JDK_VERSION}U-static-libs* --strip-components=1 -C ${JAVA_HOME}
tar -xf OpenJDK*-static-libs* --strip-components=1 -C ${JAVA_HOME}
pushd mandrel
echo MANDREL_DESCRIBE="$(git describe --always --long)"
popd
Expand Down

0 comments on commit 991bd2e

Please sign in to comment.