forked from mdn/kuma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
43 lines (35 loc) · 1.2 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
node {
stage 'git'
checkout scm
env.DEIS_BIN = 'deis2'
env.DEIS_PROFILE = 'dev-usw'
switch (env.BRANCH_NAME) {
case 'master':
stage('Build base') {
sh 'make build-base VERSION=latest'
}
stage('compose-test') {
sh 'make compose-test TEST=noext' // "smoke" tests with no external deps
sh 'make compose-test TEST="noext make build-static"' // required for many tests
sh 'docker-compose build'
sh 'make compose-test'
}
stage('Build & push kuma image') {
sh 'make build-kuma push-kuma'
}
break
default:
// this assumes the latest base image from master is compatible with this branch
// TODO: example special case branch that builds and uses a different base image
stage('compose-test') {
sh 'make compose-test TEST=noext' // "smoke" tests with no external deps
sh 'make compose-test TEST="noext make build-static"' // required for many tests
sh 'docker-compose build'
sh 'make compose-test'
}
stage('Build & push kuma image') {
sh 'make build-kuma push-kuma'
}
break
}
}