-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
50 lines (50 loc) · 1.55 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
pipeline {
agent {
docker {
image "cart.lge.com/swte/jenkins-dev:latest"
}
}
options {
disableConcurrentBuilds(abortPrevious: true)
}
stages {
stage("Javadoc") {
steps {
sh "mvn javadoc:javadoc"
}
}
stage("StaticAnalysis") {
steps {
sh "mvn checkstyle:checkstyle jxr:jxr pmd:pmd pmd:cpd spotbugs:spotbugs"
}
}
stage("Test") {
steps {
sh "HOME=${env.WORKSPACE}/home mvn verify"
}
}
stage("Coverage") {
steps {
sh "mvn jacoco:report"
}
}
stage("MutationTest") {
steps {
sh "mvn org.pitest:pitest-maven:mutationCoverage"
}
}
}
post {
always {
recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
recordIssues enabledForFailure: true, tool: checkStyle()
recordIssues enabledForFailure: true, tool: spotBugs()
recordIssues enabledForFailure: true, tool: cpd(pattern: '**/target/cpd.xml')
recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml')
junit "**/target/surefire-reports/*.xml"
jacoco()
pitmutation killRatioMustImprove: false, minimumKillRatio: 50.0, mutationStatsFile: '**/target/pit-reports/**/mutations.xml'
cleanWs disableDeferredWipeout: true
}
}
}