Skip to content

Commit

Permalink
Use only buildPlugin() in Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
XiongKezhi committed Jul 6, 2020
1 parent 5866248 commit 38d6bf1
Showing 1 changed file with 1 addition and 36 deletions.
37 changes: 1 addition & 36 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,36 +1 @@
node {
stage ('Checkout') {
checkout scm
}

stage ('Build and Static Analysis') {
withMaven {
sh 'mvn -ntp -V -e clean verify -Dmaven.test.failure.ignore -Dgpg.skip'
}

recordIssues tools: [java(), javaDoc()], aggregatingResults: 'true', id: 'java', name: 'Java'

junit testResults: '**/target/*-reports/TEST-*.xml'

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 ('Line and Branch Coverage') {
withMaven {
sh "mvn -ntp -V -U -e jacoco:prepare-agent test jacoco:report -Dmaven.test.failure.ignore"
}
publishCoverage adapters: [jacocoAdapter('**/*/jacoco.xml')], sourceFileResolver: sourceFiles('STORE_ALL_BUILD')
}

stage ('Mutation Coverage') {
withMaven {
sh "mvn -ntp org.pitest:pitest-maven:mutationCoverage"
}
step([$class: 'PitPublisher', mutationStatsFile: 'target/pit-reports/**/mutations.xml'])
}
}
buildPlugin()

0 comments on commit 38d6bf1

Please sign in to comment.