[AMQ-9389] Add JDK 22, arm and Windows to Jenkins build options

This commit is contained in:
Matt Pavlovich 2023-11-14 08:40:42 -06:00
parent 1747acaf03
commit b424e3ee29
1 changed files with 14 additions and 2 deletions

16
Jenkinsfile vendored
View File

@ -42,8 +42,8 @@ pipeline {
}
parameters {
choice(name: 'nodeLabel', choices: ['ubuntu', 's390x'])
choice(name: 'jdkVersion', choices: ['jdk_17_latest', 'jdk_21_latest'])
choice(name: 'nodeLabel', choices: ['ubuntu', 's390x', 'arm', 'Windows'])
choice(name: 'jdkVersion', choices: ['jdk_17_latest', 'jdk_21_latest', 'jdk_22_latest', 'jdk_17_latest_windows', 'jdk_21_latest_windows', 'jdk_22_latest_windows'])
}
stages {
@ -69,6 +69,18 @@ pipeline {
}
}
stage('Build JDK 22') {
tools {
jdk "jdk_22_latest"
}
steps {
echo 'Building JDK 22'
sh 'java -version'
sh 'mvn -version'
sh 'mvn -U -B -e clean install -DskipTests'
}
}
stage('Build JDK 21') {
tools {
jdk "jdk_21_latest"