-
Notifications
You must be signed in to change notification settings - Fork 20
/
Jenkinsfile
39 lines (37 loc) · 1.13 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
pipeline {
agent any
options {
timestamps()
}
stages {
stage('Build') {
steps {
sh './gradlew clean classes testClasses'
}
}
stage('Test') {
steps {
sh './gradlew test'
}
post {
always {
junit 'build/test-results/test/*.xml'
}
}
}
stage('Binary') {
steps {
sh './gradlew fatJar'
archiveArtifacts artifacts: 'build/libs/sone*-jar-with-dependencies.jar', fingerprint: true
}
}
stage('Reports') {
steps {
sh './gradlew jacocoTestReport findbugsMain countLines'
jacoco classPattern: 'build/classes/*/main', sourcePattern: '**/src/main/'
findbugs canComputeNew: false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', pattern: '**/findbugs/main.xml', unHealthy: ''
sloccountPublish encoding: '', pattern: 'build/reports/cloc/*.xml'
}
}
}
}