From 9427d9af258717002950ac4f9746a9e3ebd2f514 Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 28 Mar 2022 11:27:31 +0200 Subject: [PATCH] update jenkins --- Jenkinsfile | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dddd0e39..ea0c7bb5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,22 +27,17 @@ pipeline { jacoco classPattern: '**/build/classes/*/main/', execPattern: '**/target/*.exec', sourcePattern: '**/src/main/java', inclusionPattern: '**/*.class' } } - - stage('Tag') { - steps { - echo 'Build is tagged here.' - } - } - - stage('Push to Nexus') { - steps { - echo 'Build is pushed to Nexus here.' - } - } - } post { + always { + junit testResults: '**/target/surefire-reports/TEST-*.xml' + + recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()] + recordIssues enabledForFailure: true, tool: checkStyle() + recordIssues enabledForFailure: true, tool: spotBugs() + recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml') + } failure { setBuildStatus("Build failed", "FAILURE"); emailext body: "The build of the LET Application (${env.JOB_NAME}) failed! See ${env.BUILD_URL}", recipientProviders: [[$class: 'CulpritsRecipientProvider']], subject: 'LET Application Build Failure'