-
Notifications
You must be signed in to change notification settings - Fork 8
/
Jenkinsfile
76 lines (69 loc) · 2.12 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
@Library('libpipelines@master') _
hose {
MAIL = 'governance'
LANG = 'scala'
SLACKTEAM = 'data-governance'
MODULE = 'tiki-takka'
REPOSITORY = 'tiki-takka'
DEVTIMEOUT = 30
RELEASETIMEOUT = 30
MAXITRETRIES = 2
EXPOSED_PORTS = [8080]
ITSERVICES = [
['CONSUL': [
'image': 'consul:0.7.0',
'sleep': 20,
'healthcheck': 8500
]],
['ZOOKEEPER': [
'image': 'jplock/zookeeper:3.5.2-alpha',
'sleep': 10,
'healthcheck': 2181
]],
['MESOS-MASTER': [
'image': 'mesosphere/mesos-master:1.0.1-2.0.93.ubuntu1404',
'sleep': 10,
'healthcheck': 5050,
'env': [
'MESOS_ZK=zk://%%ZOOKEEPER:2181/mesos',
'MESOS_QUORUM=1',
'MESOS_CLUSTER=%%JUID',
'MESOS_REGISTRY=replicated_log'
]
]],
['MESOS-SLAVE': [
'image': 'mesosphere/mesos-slave:1.0.1-2.0.93.ubuntu1404',
'env': [
'MESOS_MASTER=zk://%%ZOOKEEPER:2181/mesos',
'MESOS_CONTAINERIZERS=docker,mesos',
'MESOS_PORT=5051',
'MESOS_RESOURCES=ports\\(*\\):[11000-11999]',
'MESOS_WORK_DIR=/tmp/mesos',
'MESOS_HOSTNAME=%%MESOS-SLAVE'
]
]],
['MARATHON': [
'image': 'mesosphere/marathon:v1.3.0',
'cmd': '--zk zk://%%ZOOKEEPER:2181/mesos',
'sleep': 10,
'env': [
'MARATHON_MASTER=zk://%%ZOOKEEPER:2181/mesos'
]
]]
]
ITPARAMETERS = """
| -Dconsul.uri="http://%%CONSUL:8500"
| -Dmarathon.uri="http://%%MARATHON:8080"
| """
DEV = {
config ->
doCompile(config)
parallel(UT: {doUT(config)},
IT: {doIT(config)},
failFast: config.FAILFAST)
doPackage(config)
parallel(QC: {doStaticAnalysis(config)},
DEPLOY: {doDeploy(config)},
failFast: config.FAILFAST)
}
}