|
1 | 1 | <?xml version='1.1' encoding='UTF-8'?> |
2 | | -<flow-definition plugin="workflow-job@1426.v2ecb_a_a_42fd46"> |
| 2 | +<flow-definition plugin="workflow-job@1505.vea_4b_20a_4a_495"> |
3 | 3 | <actions/> |
4 | 4 | <description></description> |
5 | 5 | <keepDependencies>false</keepDependencies> |
6 | 6 | <properties/> |
7 | | - <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@3903.v48a_8836749e9"> |
| 7 | + <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@4018.vf02e01888da_f"> |
8 | 8 | <script>node ('jdk21') { |
9 | 9 | def url = "https://github.com/jenkinsci/coverage-model.git" |
10 | 10 | def tags = "git ls-remote -t --sort v:refname --refs $url | cut -f1 | tail -n +28" |
|
35 | 35 |
|
36 | 36 | junit(allowEmptyResults: true, testResults: '**/target/*-reports/TEST-*.xml') |
37 | 37 |
|
| 38 | + recordCoverage(tools: [[parser: 'METRICS', pattern: 'target/metrics/pmd.xml']], |
| 39 | + sourceCodeRetention: 'NEVER', id: 'metrics', name: 'Software Metrics') |
38 | 40 | recordCoverage(tools: [ |
39 | 41 | [parser: 'JACOCO', pattern: 'target/site/jacoco/jacoco.xml'], |
40 | 42 | [parser: 'JUNIT', pattern: '**/target/*-reports/TEST-*.xml']], |
|
46 | 48 | [threshold: 50.0, metric: 'BRANCH', baseline: 'PROJECT', criticality: 'ERROR']]) |
47 | 49 | recordIssues tools: [checkStyle(pattern: 'target/**/checkstyle-result.xml'), |
48 | 50 | spotBugs(pattern: 'target/spotbugsXml.xml'), |
49 | | - pmdParser(pattern: 'target/**/pmd.xml'), |
| 51 | + pmdParser(pattern: 'target/pmd-*/pmd.xml'), |
50 | 52 | cpd(pattern: 'target/cpd.xml'), |
51 | 53 | revApi(pattern: 'target/revapi-result.json'), |
52 | 54 | taskScanner(highTags:'FIXME', normalTags:'TODO', includePattern: '**/*.java', excludePattern: 'target/**/*')], |
|
58 | 60 |
|
59 | 61 | stage ('Mutation Coverage') { |
60 | 62 | withMaven(mavenOpts: '-Xmx1024m -Xms512m') { |
61 | | - sh "mvn org.pitest:pitest-maven:mutationCoverage" |
| 63 | + sh "mvn dependency:properties org.pitest:pitest-maven:mutationCoverage" |
62 | 64 | } |
63 | 65 | recordCoverage tools: [[parser: 'PIT', pattern: '**/pit-reports/mutations.xml'], |
64 | 66 | [parser: 'JUNIT', pattern: '**/target/*-reports/TEST-*.xml']], id: 'pit', |
|
0 commit comments