-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
executable file
·43 lines (35 loc) · 876 Bytes
/
Copy pathJenkinsfile
File metadata and controls
executable file
·43 lines (35 loc) · 876 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!groovy
node() {
env.JAVA_HOME = "${tool 'zulu-11.0.8'}"
try {
stage('Clean workspace') {
cleanWs()
}
stage('Checkout') {
checkout(scm)
}
stage('Build') {
_gradle 'assemble'
}
stage('Test') {
try {
_gradle 'systemtest'
} finally {
junit '**/systemtest-results/systemtest/*.xml'
}
}
// see https://www.jenkins.io/doc/pipeline/steps/jacoco/
stage('Test coverage') {
jacoco(
classPattern: '**/build/classes/java/main'
)
}
currentBuild.result = 'SUCCESS'
} catch (Exception exception) {
currentBuild.result = 'FAILURE'
throw exception
}
}
def _gradle(String task) {
sh "./gradlew ${task}"
}