}
stages {
- stage('Build (Java 8)') {
+ stage('Build (Java 17)') {
tools {
- jdk 'OpenJDK 8'
+ jdk 'OpenJDK 17'
}
steps {
sh './gradlew --no-daemon clean classes testClasses'
}
}
- stage('Test (Java 8)') {
+ stage('Test (Java 17)') {
tools {
- jdk 'OpenJDK 8'
+ jdk 'OpenJDK 17'
}
steps {
sh './gradlew --no-daemon test jacocoTestReport'
}
}
}
- stage('Binary (Java 8)') {
+ stage('Binary (Java 17)') {
tools {
- jdk 'OpenJDK 8'
+ jdk 'OpenJDK 17'
}
steps {
sh './gradlew --no-daemon fatJar'
archiveArtifacts artifacts: 'build/libs/rhynodge-*-jar-with-dependencies.jar', fingerprint: true
}
}
- stage('Compatibility (Java 17)') {
- tools {
- jdk 'OpenJDK 17'
- }
- steps {
- catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
- sh './gradlew --no-daemon clean test'
- }
- }
- }
stage('Compatibility (Java 21)') {
tools {
jdk 'OpenJDK 21'