forked from nrkno/sofie-core
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Jenkinsfile
59 lines (55 loc) · 1.6 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
52
53
54
55
56
57
58
59
@Library('sofie-jenkins-lib') _
pipeline {
agent any
stages {
stage('Build') {
failFast false
parallel {
stage('Build core') {
steps {
/* Persist git hash, this is the same as `meteor yarn run inject-git-hash` */
sh "node ./meteor/scripts/generate-version-file.js"
sofieSlackSendBuildStarted('core')
dockerBuild('sofie/tv-automation-server-core', '.', './meteor/Dockerfile')
}
post {
failure {
sofieSlackSendBuildFailure('core')
}
success {
sofieSlackSendBuildSuccess('core')
}
}
}
stage('Build playout gateway') {
steps {
sofieSlackSendBuildStarted('playout-gateway')
dockerBuild('sofie/tv-automation-playout-gateway', './packages', './packages/playout-gateway/Dockerfile')
}
post {
failure {
sofieSlackSendBuildFailure('playout-gateway')
}
success {
sofieSlackSendBuildSuccess('playout-gateway')
}
}
}
stage('Build mos gateway') {
steps {
sofieSlackSendBuildStarted('mos-gateway')
dockerBuild('sofie/tv-automation-mos-gateway', './packages', './packages/mos-gateway/Dockerfile')
}
post {
failure {
sofieSlackSendBuildFailure('mos-gateway')
}
success {
sofieSlackSendBuildSuccess('mos-gateway')
}
}
}
}
}
}
}