Skip to content

Commit

Permalink
[releng] Update download JDK method
Browse files Browse the repository at this point in the history
Change-Id: If4b8bd12af41d168834f62493f40dd0fb02d8d99
Signed-off-by: Philippe DUL <philippe.dul@thalesgroup.com>
  • Loading branch information
pdulth committed Feb 1, 2022
1 parent 24c4c18 commit 48a4e99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vars/downloader.groovy
Expand Up @@ -49,8 +49,6 @@ def downloadMacJDK(jdkMacFolder) {
* @return Nothing but extracts the downloaded JDK to <code>${jdkFolder}/jre</code>.
*/
def downloadTemurinJDK17(jdkFolder, os) {
def jdk = 'jdk-17.0.1+12-jre'

def jdkWinURL = 'https://api.adoptium.net/v3/binary/latest/17/ga/windows/x64/jre/hotspot/normal/eclipse'
def jdkLinuxURL = 'https://api.adoptium.net/v3/binary/latest/17/ga/linux/x64/jre/hotspot/normal/eclipse'
def jdkMacURL = 'https://api.adoptium.net/v3/binary/latest/17/ga/mac/x64/jre/hotspot/normal/eclipse'
Expand Down Expand Up @@ -98,7 +96,7 @@ def downloadTemurinJDK17(jdkFolder, os) {
break;
}

sh "mv ${jdkFolder}/${jdk} ${jdkFolder}/jre"
sh "mv ${jdkFolder}/jdk* ${jdkFolder}/jre"
println "${osPrint} JDK downloaded to ${jdkFolder}/jre"
sh "ls ${jdkFolder}/jre"

Expand Down

0 comments on commit 48a4e99

Please sign in to comment.