From 861d5ffa83e8960877dcc995668acf90a394b1ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 2 Oct 2024 11:17:07 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=92=9A=20Condense=20compatibility=20checks?= =?utf8?q?=20into=20a=20single=20stage,=20add=20check=20with=20JDK=2021?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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' } } } -- 2.7.4