jenkins-infra / pipeline-library

Collection of custom steps and variables for our Jenkins instance(s)
295 stars 136 forks source link

Read multiple result files with the pattern for CPD #888

Closed uhafner closed 4 weeks ago

uhafner commented 4 weeks ago

When a project build creates multiple CPD reports (e.g., different CPD settings for test and production code) then the current buildPlugin setup cannot handle these results. E.g., my plugins create a structure:

target/pmd-java/cpd.xml
target/pmd-javascript/cpd.xml
target/pmd-tests/cpd.xml

In order to pick up those files as well, the pattern should be changed to support those structures as well.

This is a followup to #850 that fixed the same problem for PMD and CheckStyle. I forgot to change the settings for CPD as well.