-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathJenkinsfile
51 lines (43 loc) · 1.33 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
45
46
47
48
49
50
51
elifePipeline {
def commit
stage 'Checkout', {
checkout scm
commit = elifeGitRevision()
}
stage 'Update', {
sh './update.sh --exclude virtualbox vagrant ssh-credentials ssh-agent vault'
}
stage '.ci/ checks', {
elifeLocalTests()
}
lock('builder') {
def actions = [:]
def python = 'py3'
actions["Test ${python}"] = {
withCommitStatus({
try {
sh "BUILDER_INTEGRATION_TESTS=1 ./test.sh"
} finally {
// https://issues.jenkins-ci.org/browse/JENKINS-27395?focusedCommentId=345589&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-345589
junit testResults: "build/pytest-${python}.xml"
}
}, python, commit)
}
actions["Docker ${python}"] = {
withCommitStatus({
node('containers-jenkins-plugin') {
checkout scm
sh "./docker-smoke.sh"
}
}, "docker-${python}", commit)
}
stage 'Project tests', {
parallel actions
}
}
stage 'Downstream', {
elifeMainlineOnly {
build job: '/release/release-builder-jenkins', wait: false
}
}
}