Skip to content

Commit

Permalink
Add Jenkinsfile that skips PIT.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Aug 10, 2021
1 parent 720c679 commit 309ca4b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions etc/Jenkinsfile.coverage
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
node('java11-agent') {
stage ('Checkout') {
checkout scm
}

stage ('Git mining') {
discoverGitReferenceBuild()
mineRepository()
}

stage ('Build, Test, and Static Analysis') {
withMaven(mavenLocalRepo: '/var/data/m2repository', mavenOpts: '-Xmx768m -Xms512m') {
sh 'mvn -V -e clean verify -Dmaven.test.failure.ignore -Dgpg.skip'
}

recordIssues tools: [java(), javaDoc()], aggregatingResults: 'true', id: 'java', name: 'Java'
recordIssues tool: errorProne(), healthy: 1, unhealthy: 20

junit testResults: '**/target/*-reports/TEST-*.xml'
publishCoverage adapters: [jacocoAdapter('**/*/jacoco.xml')], sourceFileResolver: sourceFiles('STORE_ALL_BUILD')

recordIssues tools: [checkStyle(pattern: 'target/checkstyle-result.xml'),
spotBugs(pattern: 'target/spotbugsXml.xml'),
pmdParser(pattern: 'target/pmd.xml'),
cpd(pattern: 'target/cpd.xml'),
taskScanner(highTags:'FIXME', normalTags:'TODO', includePattern: '**/*.java', excludePattern: 'target/**/*')],
qualityGates: [[threshold: 1, type: 'TOTAL', unstable: true]]
}

stage ('Collect Maven Warnings') {
recordIssues tool: mavenConsole()
}
}

0 comments on commit 309ca4b

Please sign in to comment.