diff --git a/Jenkinsfile b/Jenkinsfile index 1218dd96..df7145c8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,9 @@ pipeline { stage('Reporting') { steps { - sh '${M2_HOME}/bin/mvn --batch-mode -V -U -e pmd:pmd pmd:cpd findbugs:findbugs spotbugs:spotbugs' + withMaven(maven: 'Maven', options: [findbugsPublisher(disabled: true)]) { + sh "mvn --batch-mode -V -U -e pmd:pmd pmd:cpd findbugs:findbugs spotbugs:spotbugs" + } } } }