From 30c2a1cdbb920be2969a58cde259df6b399a6509 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 30 Sep 2024 14:43:17 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=91=B7=20Add=20JDK=20to=20use=20for=20buil?= =?utf8?q?d=20in=20pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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/' -- 2.7.4