forked from corda/accounts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
38 lines (33 loc) · 810 Bytes
/
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
@Library('existing-build-control')
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
pipeline {
agent {
dockerfile {
filename '.ci/Dockerfile'
}
}
options { timestamps() }
environment {
EXECUTOR_NUMBER = "${env.EXECUTOR_NUMBER}"
}
stages {
stage('Unit Tests') {
steps {
timeout(20) {
sh "./gradlew clean test --info"
}
}
post {
always {
junit '**/build/test-results/**/*.xml'
}
}
}
}
post {
cleanup {
deleteDir() /* clean up our workspace */
}
}
}