From: David ‘Bombe’ Roden Date: Wed, 2 Oct 2024 09:17:07 +0000 (+0200) Subject: 💚 Condense compatibility checks into a single stage, add check with JDK 21 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=861d5ffa83e8960877dcc995668acf90a394b1ed;p=Sone.git 💚 Condense compatibility checks into a single stage, add check with JDK 21 --- diff --git a/Jenkinsfile b/Jenkinsfile index f975642..1ea275a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } }