Update Jenkinsfiles to JDK22
This commit is contained in:
4
jenkinsfiles/LigaCupUpdater/Jenkinsfile
vendored
4
jenkinsfiles/LigaCupUpdater/Jenkinsfile
vendored
@@ -10,14 +10,14 @@ pipeline {
|
||||
stage('Execute') {
|
||||
steps {
|
||||
script {
|
||||
String jdkPath = tool name: 'OpenJDK19', type: 'jdk'
|
||||
String jdkPath = tool name: 'OpenJDK22', type: 'jdk'
|
||||
withCredentials([
|
||||
usernamePassword(credentialsId: 'aws', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_KEY'),
|
||||
usernamePassword(credentialsId: 'forum_database', usernameVariable: 'TLW_DATABASE_USERNAME', passwordVariable: 'TLW_DATABASE_PASSWORD'),
|
||||
usernamePassword(credentialsId: 'forum_user', usernameVariable: 'FORUM_USERNAME', passwordVariable: 'FORUM_PASSWORD')
|
||||
]) {
|
||||
withEnv([
|
||||
"JAVA_HOME=${jdkPath}/jdk-19.0.2"
|
||||
"JAVA_HOME=${jdkPath}/jdk-22.0.2"
|
||||
]) {
|
||||
try {
|
||||
sh "java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchesUpdaterFootball --season ${season} --league 49 --configFile EM-Tippspiel 2>&1 >> log.txt"
|
||||
|
||||
Reference in New Issue
Block a user