Update Jenkinsfiles to JDK22
This commit is contained in:
4
jenkinsfiles/build/Jenkinsfile
vendored
4
jenkinsfiles/build/Jenkinsfile
vendored
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user