Update Jenkinsfiles to JDK22

This commit is contained in:
2025-01-26 22:11:23 +01:00
parent baffe58204
commit 1a83102652
8 changed files with 16 additions and 16 deletions

View File

@@ -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 {