From 8a02a80cca50aa247829281ce41a2bdb26ff77e7 Mon Sep 17 00:00:00 2001 From: David Roden Date: Fri, 20 Dec 2024 12:25:56 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=92=9A=20Remove=20compatibility=20steps=20?= =?utf8?q?from=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The build file contains the JDK it wants. --- Jenkinsfile | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 096a33d..36393e0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,17 +6,17 @@ pipeline { } stages { - stage('Build (Java 8)') { + stage('Build') { tools { - jdk 'OpenJDK 8' + jdk 'OpenJDK 17' } steps { sh './gradlew --no-daemon clean classes testClasses' } } - stage('Test (Java 8)') { + stage('Test') { tools { - jdk 'OpenJDK 8' + jdk 'OpenJDK 17' } steps { sh './gradlew --no-daemon test jacocoTestReport' @@ -28,35 +28,15 @@ pipeline { } } } - stage('Binary (Java 8)') { + stage('Binary') { 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' - } - steps { - catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh './gradlew --no-daemon clean test' - } - } - } } } -- 2.7.4