-
Notifications
You must be signed in to change notification settings - Fork 163
Expand file tree
/
Copy pathJenkinsfile
More file actions
25 lines (21 loc) · 724 Bytes
/
Copy pathJenkinsfile
File metadata and controls
25 lines (21 loc) · 724 Bytes
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
node {
stage ('Checkout') {
git 'https://github.com/aterai/java-swing-tips.git'
}
stage ('Analysis') {
withEnv(["ANT_HOME=${env.ANT_HOME}"]) {
if (isUnix()) {
sh '"$ANT_HOME/bin/ant" -file all.xml checkstyle pmd'
} else {
bat(/"%ANT_HOME%\bin\ant" -file all.xml checkstyle pmd/)
}
}
def checkstyle = scanForIssues tool: checkStyle(pattern: '**/checkstyle-result.xml')
publishIssues issues: [checkstyle]
def pmd = scanForIssues tool: pmdParser(pattern: '**/pmd.xml')
publishIssues issues: [pmd]
publishIssues id: 'analysis', name: 'All Issues',
issues: [checkstyle, pmd],
filters: [includePackage('io.jenkins.plugins.analysis.*')]
}
}