diff --git a/jenkinsfiles/APIFootballUpdater/Jenkinsfile b/jenkinsfiles/APIFootballUpdater/Jenkinsfile index 1a1fa01..6eb638b 100644 --- a/jenkinsfiles/APIFootballUpdater/Jenkinsfile +++ b/jenkinsfiles/APIFootballUpdater/Jenkinsfile @@ -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 APIFootballUpdater --season ${season} --league 1 --configFile Tippliga 2>&1 >> log.txt" diff --git a/jenkinsfiles/CheckGistUpdates/Jenkinsfile b/jenkinsfiles/CheckGistUpdates/Jenkinsfile index c9c608f..34eeb34 100644 --- a/jenkinsfiles/CheckGistUpdates/Jenkinsfile +++ b/jenkinsfiles/CheckGistUpdates/Jenkinsfile @@ -10,14 +10,14 @@ pipeline { stage('GetAndWriteChecksum') { 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" ]) { String checksum_tippliga = sh returnStdout: true, script: "java -jar build/libs/tlw-database-tool-1.0.jar --mode PostChecksum --season ${season} --league 1 --configFile Tippliga 2>&1" writeFile file: 'checksum_tippliga.txt', text: checksum_tippliga diff --git a/jenkinsfiles/LigaCupUpdater/Jenkinsfile b/jenkinsfiles/LigaCupUpdater/Jenkinsfile index f3a3a30..0bf3018 100644 --- a/jenkinsfiles/LigaCupUpdater/Jenkinsfile +++ b/jenkinsfiles/LigaCupUpdater/Jenkinsfile @@ -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" diff --git a/jenkinsfiles/SupercupUpdater/Jenkinsfile b/jenkinsfiles/SupercupUpdater/Jenkinsfile index 92ff3ca..5174735 100644 --- a/jenkinsfiles/SupercupUpdater/Jenkinsfile +++ b/jenkinsfiles/SupercupUpdater/Jenkinsfile @@ -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 45 --configFile Supercup 2>&1 >> log.txt" diff --git a/jenkinsfiles/TippligaUpdater/Jenkinsfile b/jenkinsfiles/TippligaUpdater/Jenkinsfile index 16c84d0..3fc1870 100644 --- a/jenkinsfiles/TippligaUpdater/Jenkinsfile +++ b/jenkinsfiles/TippligaUpdater/Jenkinsfile @@ -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 "ls build/libs" diff --git a/jenkinsfiles/WTLPokalUpdater/Jenkinsfile b/jenkinsfiles/WTLPokalUpdater/Jenkinsfile index 33a9e44..2100a3c 100644 --- a/jenkinsfiles/WTLPokalUpdater/Jenkinsfile +++ b/jenkinsfiles/WTLPokalUpdater/Jenkinsfile @@ -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 48 --configFile WTL-Pokal 2>&1 >> log.txt" diff --git a/jenkinsfiles/WhatsAppReminder/Jenkinsfile b/jenkinsfiles/WhatsAppReminder/Jenkinsfile index 2fc219d..36a21ff 100644 --- a/jenkinsfiles/WhatsAppReminder/Jenkinsfile +++ b/jenkinsfiles/WhatsAppReminder/Jenkinsfile @@ -10,7 +10,7 @@ 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'), @@ -19,7 +19,7 @@ pipeline { string(credentialsId: 'OPENAI_TOKEN', variable: 'OPENAI_TOKEN') ]) { withEnv([ - "JAVA_HOME=${jdkPath}/jdk-19.0.2", + "JAVA_HOME=${jdkPath}/jdk-22.0.2", "TLW_WHATSAPP_HOST=https://tlw-whatsapp.codeam.io" ]) { try { diff --git a/jenkinsfiles/build/Jenkinsfile b/jenkinsfiles/build/Jenkinsfile index a545bfd..8244a18 100644 --- a/jenkinsfiles/build/Jenkinsfile +++ b/jenkinsfiles/build/Jenkinsfile @@ -10,14 +10,14 @@ pipeline { stage('Build') { 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" ]) { sh returnStdout: false, script: "./gradlew build -x test" }