Skip to content

Commit

Permalink
Merge pull request #4 from jenkinsci/tweak-jenkinsfile
Browse files Browse the repository at this point in the history
Tweak grammar for maven
  • Loading branch information
XiongKezhi authored Jul 6, 2020
2 parents 3ab2ef5 + 38d6bf1 commit dfa3327
Showing 1 changed file with 1 addition and 38 deletions.
39 changes: 1 addition & 38 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,38 +1 @@
node {
def mvnHome = tool 'mvn-default'

stage ('Checkout') {
checkout scm
}

stage ('Build and Static Analysis') {
withMaven(maven: 'mvn-default', mavenOpts: '-Xmx768m -Xms512m') {
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(maven: 'mvn-default', mavenOpts: '-Xmx768m -Xms512m') {
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(maven: 'mvn-default', mavenOpts: '-Xmx768m -Xms512m') {
sh "mvn -ntp org.pitest:pitest-maven:mutationCoverage"
}
step([$class: 'PitPublisher', mutationStatsFile: 'target/pit-reports/**/mutations.xml'])
}
}
buildPlugin()

0 comments on commit dfa3327

Please sign in to comment.