This repository has been archived by the owner on May 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
/
Jenkinsfile
96 lines (87 loc) · 2.9 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
@Library('libpipelines@master') _
hose {
EMAIL = 'cassandra'
MODULE = 'cassandra-lucene-index'
DEVTIMEOUT = 90
RELEASETIMEOUT = 30
FOSS = true
REPOSITORY = 'cassandra-lucene-index'
LANG = 'java'
PKGMODULES = ['dist']
PKGMODULESNAMES = ['stratio-cassandra-lucene-index']
DEBARCH = 'all'
RPMARCH = 'noarch'
EXPOSED_PORTS = [9042, 7199, 8000]
PARALLELIZEAT = 3
ATSERVICES = [
[
'CASSANDRA': [
'image': 'stratio/cassandra-lucene-index:%%VERSION',
'volumes':['jts:1.14.0'],
'env': [ 'MAX_HEAP=256M',
'START_JOLOKIA=true',
'JOLOKIA_OPTS="port=8000,host=*"'
],
'sleep': 30,
'healthcheck': 9042
],
'CASSANDRA': [
'image': 'stratio/cassandra-lucene-index:%%VERSION',
'volumes':['jts:1.14.0'],
'env': [ 'MAX_HEAP=256M',
'START_JOLOKIA=true',
'JOLOKIA_OPTS="port=8000,host=*"',
'SEEDS=%%CASSANDRA#0'
],
'sleep': 30,
'healthcheck': 9042
],
'CASSANDRA': [
'image': 'stratio/cassandra-lucene-index:%%VERSION',
'volumes':['jts:1.14.0'],
'env': [ 'MAX_HEAP=256M',
'START_JOLOKIA=true',
'JOLOKIA_OPTS="port=8000,host=*"',
'SEEDS=%%CASSANDRA#0'
],
'sleep': 30,
'healthcheck': 9042
]
],
]
ATPARAMETERS= """
| -Dit.host=%%CASSANDRA
| -Dit.monitor_service=jolokia
| -Dit.monitor_services_url=%%CASSANDRA#0:8000
| -Dit.replication=1
| -Dit.consistency=QUORUM
| -DJACOCO_SERVER=%%CASSANDRA"""
DEV = { config ->
doCompile(config)
doUT(config)
doUT(conf: config, parameters: '-Duser.timezone=UTC')
doPackage(config)
parallel(DOC: {
doDoc(config)
}, QC: {
doStaticAnalysis(config)
}, DEPLOY: {
doDeploy(config)
}, DOCKER : {
doDocker(config)
}, failFast: config.FAILFAST)
parallel(
AT_REPLICATION_1: {
doAT(config)
},
AT_REPLICATION_3: {
def replication3Parameters = [
'it.replication': '3',
'it.monitor_services_url' : '%%CASSANDRA#0:8000,%%CASSANDRA#1:8000,%%CASSANDRA#2:8000'
]
doAT(conf: config, crossbuild: 'repl_3', parameters: doReplaceTokens(ATPARAMETERS, replication3Parameters))
},
failFast: config.FAILFAST
)
}
}