fixed maven for reporting

This commit is contained in:
anhefti 2024-03-05 10:37:28 +01:00
parent 8e115d26d0
commit 3b96c11324

4
Jenkinsfile vendored
View file

@ -22,7 +22,7 @@ pipeline {
stage('Reporting') { stage('Reporting') {
steps { steps {
withMaven(maven: 'Maven', options: [findbugsPublisher(disabled: true)]) { withMaven(maven: 'Maven3.9.6', options: [findbugsPublisher(disabled: true)]) {
sh "mvn --batch-mode -V -U -e -P let_reporting pmd:pmd pmd:cpd findbugs:findbugs" sh "mvn --batch-mode -V -U -e -P let_reporting pmd:pmd pmd:cpd findbugs:findbugs"
} }
} }
@ -33,7 +33,7 @@ pipeline {
always { always {
junit testResults: '**/target/surefire-reports/TEST-*.xml' junit testResults: '**/target/surefire-reports/TEST-*.xml'
//recordIssues enabledForFailure: true, tool: spotBugs() recordIssues enabledForFailure: true, tool: spotBugs()
recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml') recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml')
} }
failure { failure {