forked from pellierd/pddl4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
44 lines (41 loc) · 1.21 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
#!groovy
pipeline {
agent any
stages {
stage('Clean') {
steps {
sh "./gradlew clean"
}
}
stage('Build') {
steps {
sh "./gradlew jar"
sh "./gradlew javadoc"
}
}
stage('Analyze') {
steps {
sh "./gradlew checkstyleMain"
sh "./gradlew checkstyleTest"
checkstyle canComputeNew: false, defaultEncoding: '', healthy: '', pattern: 'build/reports/checkstyle/*.xml', unHealthy: ''
sh "./gradlew findbugsMain -Pfindbug"
sh "./gradlew findbugsTest -Pfindbug"
findbugs canComputeNew: false, defaultEncoding: '', healthy: '', pattern: 'build/reports/findbugs/*.xml', unHealthy: ''
}
}
stage('Test') {
steps {
sh "./gradlew test"
}
}
}
post {
success {
junit 'build/test-results/test/*.xml'
archiveArtifacts artifacts: 'build/libs/*.jar', fingerprint: true
}
always {
archiveArtifacts artifacts: 'build/test-results/test/binary/output.bin'
}
}
}