Skip to content

Commit

Permalink
Improve Jenkinsfile for autograding.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Dec 8, 2023
1 parent 59328e1 commit 0e0c2f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions etc/Jenkinsfile.autograding
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ node {
recordIssues tool: errorProne(), healthy: 1, unhealthy: 20

junit testResults: '**/target/*-reports/TEST-*.xml'
recordCoverage tools: [[parser: 'JACOCO']], sourceCodeRetention: 'EVERY_BUILD'
recordCoverage tools: [[parser: 'JACOCO']], sourceCodeRetention: 'EVERY_BUILD', name: 'Code Coverage'

recordIssues tools: [checkStyle(pattern: 'target/checkstyle-result.xml'),
spotBugs(pattern: 'target/spotbugsXml.xml'),
Expand All @@ -33,7 +33,7 @@ node {
withMaven(maven: 'mvn-default', mavenLocalRepo: '/var/data/m2repository', mavenOpts: '-Xmx768m -Xms512m') {
sh "mvn -ntp org.pitest:pitest-maven:mutationCoverage"
}
recordCoverage tools: [[parser: 'PIT']], id: 'pit', sourceCodeRetention: 'EVERY_BUILD'
recordCoverage tools: [[parser: 'PIT']], id: 'pit', name: 'Mutation Coverage', sourceCodeRetention: 'EVERY_BUILD'
}

stage ('Collect Maven Warnings') {
Expand Down Expand Up @@ -101,7 +101,7 @@ node {
"metric": "line"
},
{
"id": "jacoco",
"id": "coverage",
"name": "Branch Coverage",
"metric": "branch"
}
Expand Down

0 comments on commit 0e0c2f6

Please sign in to comment.