-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
29 lines (29 loc) · 1 KB
/
Jenkinsfile
File metadata and controls
29 lines (29 loc) · 1 KB
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
pipeline {
agent {
docker {
image "cart.lge.com/swte/jenkins-dev:latest"
}
}
options {
disableConcurrentBuilds(abortPrevious: true)
}
stages {
stage("Build & Verify") {
steps {
sh "HOME=${env.WORKSPACE}/home mvn clean verify -Pstatic-analysis"
}
}
}
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"
recordCoverage tools: [[parser: 'JACOCO', pattern: '**/target/site/jacoco/jacoco.xml']]
cleanWs disableDeferredWipeout: true
}
}
}