-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
43 lines (37 loc) · 1.19 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
pipeline {
agent any
triggers {
cron('H H * * *') //regular build every day
pollSCM('* * * * *') //polling for changes, here once a minute
}
stages {
stage('Testing') {
when {
not {
branch 'master'
}
}
steps {
dir("./validator-project") {
script {
try {
// Run beacon tests (in package bio.knowledge.validator) excluding tests in the aggregator-client and beacon-client sub-project.
sh './gradlew clean test -x :aggregator-client:test -x :beacon-client:test --tests "bio.knowledge.validator.beacon.*" --no-daemon'
} finally {
junit '**/build/test-results/test/*.xml' //make the junit test results available in any case (success & failure)
}
}
}
}
}
}
post {
always {
script {
if (env.BRANCH_NAME != 'master') {
archiveArtifacts artifacts: '**/build/reports/**', fingerprint: true
}
}
}
}
}