From 17616e260e191fb03fa7370ca2e5eb90484a83ec Mon Sep 17 00:00:00 2001 From: jensp Date: Thu, 9 May 2019 17:46:23 +0000 Subject: [PATCH] CCM NG: Enabled analyse stage and processing JUnit results git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@6027 8810af33-2d31-482b-a856-94f89814c4df --- Jenkinsfile | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 409229768..6c4106781 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,13 +17,13 @@ pipeline { // } // } } - // stage("Analyse") { - // steps { - // dir('') { - // sh 'mvn package pmd:pmd pmd:cpd spotbugs:spotbugs' - // } - // } - // } + stage("Analyse") { + steps { + dir('') { + sh 'mvn package pmd:pmd pmd:cpd spotbugs:spotbugs' + } + } + } } post { success { @@ -36,13 +36,13 @@ pipeline { subject: "${currentBuild.fullDisplayName} FAILED!!!", body: "Build ${env.BUILD_URL} failed." } - // always { - // junit testResults: '**/target/surefire-reports/*.xml' + always { + junit testResults: '**/target/surefire-reports/*.xml' - // recordIssues enabledForFailure: true, tools: [java(), javaDoc()] - // recordIssues enabledForFailure: false, tool: spotBugs() - // recordIssues enabledForFailure: false, tool: cpd(pattern: '**/target/cpd.xml') - // recordIssues enabledForFailure: false, tool: pmdParser(pattern: '**/target/pmd.xml') - // } + recordIssues enabledForFailure: true, tools: [java(), javaDoc()] + recordIssues enabledForFailure: false, tool: spotBugs() + recordIssues enabledForFailure: false, tool: cpd(pattern: '**/target/cpd.xml') + recordIssues enabledForFailure: false, tool: pmdParser(pattern: '**/target/pmd.xml') + } } }