-
Notifications
You must be signed in to change notification settings - Fork 18
/
.gitlab-ci.yml
244 lines (215 loc) · 7.78 KB
/
.gitlab-ci.yml
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# You can override the included template(s) by including variable overrides
# See https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#priority-of-environment-variables
include:
- template: Security/SAST.gitlab-ci.yml
stages:
- build
- test
- site
variables:
# This will suppress any download for dependencies and plugins or upload messages which would clutter the console log.
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
MAVEN_OPTS: "-Dhttp.proxyHost=${http_proxy_host} -Dhttp.proxyPort=${http_proxy_port} -Dhttps.proxyHost=${http_proxy_host} -Dhttps.proxyPort=${http_proxy_port} -Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
# As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
# when running from the command line.
# `installAtEnd` and `deployAtEnd` are only effective with recent version of the corresponding plugins.
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
# SpotBugs currently doesn't work, maybe because of the custom image
SAST_EXCLUDED_ANALYZERS: "spotbugs"
image: dimajix/maven-npm:latest
# Cache downloaded dependencies and plugins between builds.
cache:
key: flowman-${CI_JOB_NAME}
paths:
- .m2/repository
- .npm
# Run security tests
sast:
stage: test
# Build site and reports
build-site:
stage: site
script: 'mvn ${MAVEN_CLI_OPTS} clean install -DskipTests -Ddockerfile.skip && mvn ${MAVEN_CLI_OPTS} site -Psite'
artifacts:
name: "flowman-site"
paths:
- target/site
- flowman-*/target/site
- flowman-plugins/*/target/site
expire_in: 5 days
# Default build variant
build-default:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Ddockerfile.skip'
artifacts:
name: "flowman-dist-default"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop2.6-spark2.4:
stage: build
image: dimajix/maven-npm:jdk-1.8
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-2.6 -Pspark-2.4 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop2.6-spark2.4"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop2.7-spark2.4:
stage: build
image: dimajix/maven-npm:jdk-1.8
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-2.7 -Pspark-2.4 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop2.7-spark2.4"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop3.1-spark2.4:
stage: build
image: dimajix/maven-npm:jdk-1.8
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-3.1 -Pspark-2.4 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop3.1-spark2.4"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop2.7-spark3.0:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-2.7 -Pspark-3.0 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop2.7-spark3.0"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop3.2-spark3.0:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-3.2 -Pspark-3.0 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop3.2-spark3.0"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop2.7-spark3.1:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-2.7 -Pspark-3.1 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop2.7-spark3.1"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop3.2-spark3.1:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-3.2 -Pspark-3.1 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop3.2-spark3.1"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop2.7-spark3.2:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-2.7 -Pspark-3.2 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop2.7-spark3.2"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop3.3-spark3.2:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-3.3 -Pspark-3.2 -Dhadoop.version=3.3.1 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop3.3-spark3.2"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop2.7-spark3.3:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-2.7 -Pspark-3.3 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop2.7-spark3.3"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop3.3-spark3.3:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-3.3 -Pspark-3.3 -Dhadoop.version=3.3.2 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop3.3-spark3.3"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop3.3-spark3.4:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-3.3 -Pspark-3.4 -Dhadoop.version=3.3.4 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop3.3-spark3.4"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-hadoop3.3-spark3.5:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Phadoop-3.3 -Pspark-3.5 -Dhadoop.version=3.3.4 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-hadoop3.3-spark3.4"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-cdh6.3:
stage: build
image: dimajix/maven-npm:jdk-1.8
script: 'mvn ${MAVEN_CLI_OPTS} clean package -PCDH-6.3 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-cdh6.3"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-cdp7.1:
stage: build
image: dimajix/maven-npm:jdk-1.8
script: 'mvn ${MAVEN_CLI_OPTS} clean package -PCDP-7.1 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-cdp7.1"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-cdp7.1-spark3.2:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -PCDP-7.1-spark-3.2 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-cdp7.1-spark-3.2"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-cdp7.1-spark3.3:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -PCDP-7.1-spark-3.3 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-cdp7.1-spark-3.3"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-emr6.12:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -PEMR-6.12 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-emr6.12"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
build-synapse3.3:
stage: build
script: 'mvn ${MAVEN_CLI_OPTS} clean package -Psynapse-3.3 -Ddockerfile.skip'
artifacts:
name: "flowman-dist-synapse"
paths:
- flowman-dist/target/flowman-dist-*-bin.tar.gz
expire_in: 5 days
#build-databricks12.2:
# stage: build
# script: 'mvn ${MAVEN_CLI_OPTS} clean package -Pdatabricks12.2 -Ddockerfile.skip'
# artifacts:
# name: "flowman-dist-databricks12.2"
# paths:
# - flowman-dist/target/flowman-dist-*-bin.tar.gz
# expire_in: 5 days