From: David Roden Date: Fri, 20 Dec 2024 11:25:56 +0000 (+0100) Subject: 💚 Remove compatibility steps from Jenkinsfile X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8a02a80cca50aa247829281ce41a2bdb26ff77e7;p=rhynodge.git 💚 Remove compatibility steps from Jenkinsfile The build file contains the JDK it wants. --- 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' - } - } - } } }