From 0ca2622319db20749054e82faa268b7f7b44c73a Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 4 Mar 2024 15:49:55 +0100 Subject: [PATCH] test new Jenkinsfile --- Jenkinsfile | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 257ff990..4e884a37 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,30 +21,30 @@ pipeline { } } - stage('Reporting') { - steps { - withMaven(maven: 'Maven', options: [findbugsPublisher(disabled: true)]) { - sh "mvn --batch-mode -V -U -e -P let_reporting pmd:pmd pmd:cpd findbugs:findbugs spotbugs:spotbugs" - } - } - } +// stage('Reporting') { +// steps { +// withMaven(maven: 'Maven', options: [findbugsPublisher(disabled: true)]) { +// sh "mvn --batch-mode -V -U -e -P let_reporting pmd:pmd pmd:cpd findbugs:findbugs spotbugs:spotbugs" +// } +// } +// } } - post { - always { - junit testResults: '**/target/surefire-reports/TEST-*.xml' - - 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' - } - success { - setBuildStatus("Build complete", "SUCCESS"); - } - } +// post { +// always { +// junit testResults: '**/target/surefire-reports/TEST-*.xml' +// +// 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' +// } +// success { +// setBuildStatus("Build complete", "SUCCESS"); +// } +// } options { timeout(time: 10, unit: 'MINUTES') buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '7'))