[NO-JIRA] Update Jenkinsfile to include a JDK 17 build (#902)

This commit is contained in:
Matt Pavlovich 2022-08-30 12:43:09 -05:00 committed by GitHub
parent b55e8cd5d2
commit 8c74765618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 2 deletions

21
Jenkinsfile vendored
View File

@ -63,9 +63,26 @@ pipeline {
} }
} }
stage('Build') { stage('Build JDK 17') {
tools {
jdk "jdk_17_latest"
}
steps { steps {
echo 'Building' echo 'Building JDK 17'
sh 'java -version'
sh 'mvn -version'
sh 'mvn -U -B -e clean install -DskipTests'
}
}
stage('Build JDK 11') {
tools {
jdk "jdk_11_latest"
}
steps {
echo 'Building JDK 11'
sh 'java -version'
sh 'mvn -version'
sh 'mvn -U -B -e clean install -DskipTests' sh 'mvn -U -B -e clean install -DskipTests'
} }
} }