💚 Condense compatibility checks into a single stage, add check with JDK 21
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 2 Oct 2024 09:17:07 +0000 (11:17 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 2 Oct 2024 09:17:07 +0000 (11:17 +0200)
Jenkinsfile

index f975642..1ea275a 100644 (file)
@@ -38,23 +38,23 @@ pipeline {
                 archiveArtifacts artifacts: 'build/libs/sone*-jar-with-dependencies.jar', fingerprint: true
             }
         }
-        stage('Build (Java 17)') {
+        stage('Compatibility (Java 17)') {
             tools {
                 jdk 'OpenJDK 17'
             }
             steps {
                 catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
-                    sh './gradlew clean classes testClasses'
+                    sh './gradlew clean test'
                 }
             }
         }
-        stage('Test (Java 17)') {
+        stage('Compatibility (Java 21)') {
             tools {
-                jdk 'OpenJDK 17'
+                jdk 'OpenJDK 21'
             }
             steps {
                 catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
-                    sh './gradlew test'
+                    sh './gradlew clean test'
                 }
             }
         }