From: David ‘Bombe’ Roden Date: Mon, 30 Sep 2024 12:43:17 +0000 (+0200) Subject: 👷 Add JDK to use for build in pipeline X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=30c2a1cdbb920be2969a58cde259df6b399a6509;p=Sone.git 👷 Add JDK to use for build in pipeline --- diff --git a/Jenkinsfile b/Jenkinsfile index 6775f35..b8d026d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,11 +7,17 @@ pipeline { stages { stage('Build') { + tools { + jdk 'OpenJDK 8' + } steps { sh './gradlew clean classes testClasses' } } stage('Test') { + tools { + jdk 'OpenJDK 8' + } steps { sh './gradlew test' } @@ -22,12 +28,18 @@ pipeline { } } stage('Binary') { + tools { + jdk 'OpenJDK 8' + } steps { sh './gradlew fatJar' archiveArtifacts artifacts: 'build/libs/sone*-jar-with-dependencies.jar', fingerprint: true } } stage('Reports') { + tools { + jdk 'OpenJDK 8' + } steps { sh './gradlew jacocoTestReport findbugsMain countLines' jacoco classPattern: 'build/classes/*/main', sourcePattern: '**/src/main/'