-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from jenkinsci/tweak-jenkinsfile
Tweak grammar for maven
- Loading branch information
Showing
1 changed file
with
1 addition
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |