From bb2ca0b47dc557818460a0e4938db390462352b3 Mon Sep 17 00:00:00 2001 From: Torsten Friebe Date: Wed, 17 May 2023 12:38:58 +0200 Subject: [PATCH] #1416 fixed build step for quality checks using warnings ng jenkins plugin for 3.5.x line --- Jenkinsfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 67dbef8c57..cb9f67c9eb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -52,13 +52,12 @@ pipeline { } steps { echo 'Quality checking' - sh 'mvn -B -C -fae -P oracle,mssql com.github.spotbugs:spotbugs-maven-plugin:spotbugs checkstyle:checkstyle javadoc:javadoc' + sh 'mvn -B -C -fae -P oracle com.github.spotbugs:spotbugs-maven-plugin:spotbugs javadoc:javadoc' } post { - success { - findbugs canComputeNew: false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', pattern: '**/spotbugsXml.xml', unHealthy: '' - checkstyle canComputeNew: false, canRunOnFailed: true, defaultEncoding: '', healthy: '', pattern: '**/checkstyle-result.xml', unHealthy: '' - javadoc javadocDir: '**/target/site/apidocs', keepAll: true + always { + recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()] + recordIssues enabledForFailure: true, tool: spotBugs() } } } @@ -75,8 +74,8 @@ pipeline { } post { success { - archiveArtifacts artifacts: '**/target/deegree-webservices-*.war', fingerprint: true - archiveArtifacts artifacts: '**/target/deegree-webservices-handbook*.zip', fingerprint: true + archiveArtifacts artifacts: 'checkout/**/target/deegree-webservices-*.war', fingerprint: true + archiveArtifacts artifacts: 'checkout/**/target/deegree-webservices-handbook*.zip', fingerprint: true } } }