-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
34 lines (32 loc) · 1.27 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
pipeline {
agent any
stages {
stage('build') {
agent any
steps {
sh '''mkdir lib
cp /opt/data/lib/bukkit-1.12.2.jar ./lib/bukkit-1.12.2.jar'''
fileExists './lib/bukkit-1.12.2.jar'
ansiColor(colorMapName: 'xterm') {
sh 'mvn -B -DskipTests clean package'
}
warnings(canComputeNew: false, categoriesPattern: '', consoleParsers: [[parserName: 'Maven'], [parserName: 'Java Compiler (javac)']], defaultEncoding: 'UTF-8', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', shouldDetectModules: true, unHealthy: '')
}
}
stage('test') {
post {
always {
junit 'target/surefire-reports/*.xml'
findbugs canComputeNew: false, defaultEncoding: 'UTF-8', excludePattern: '', healthy: '', includePattern: '', pattern: 'target/findbugsXml.xml', unHealthy: ''
pmd canComputeNew: false, defaultEncoding: 'UTF-8', healthy: '', pattern: 'target/pmd.xml', unHealthy: ''
checkstyle canComputeNew: false, defaultEncoding: 'UTF-8', healthy: '', pattern: 'target/checkstyle-result.xml', unHealthy: ''
}
}
steps {
sh '''mkdir lib
cp /opt/data/lib/bukkit-1.12.2.jar ./lib/bukkit-1.12.2.jar'''
sh 'mvn site'
}
}
}
}