Merge "Create Stable Branch Jobs for doctor"
[releng.git] / jjb / releng / opnfv-docker.yaml
1 ---
2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
5
6 - project:
7
8     name: opnfv-docker
9
10     master: &master
11       stream: master
12       branch: '{stream}'
13       disabled: false
14     hunter: &hunter
15       stream: hunter
16       branch: 'stable/{stream}'
17       disabled: false
18     iruya: &iruya
19       stream: iruya
20       branch: 'stable/{stream}'
21       disabled: false
22     jerma: &jerma
23       stream: jerma
24       branch: 'stable/{stream}'
25       disabled: false
26     laas-receivers: &laas_receivers
27       receivers: >
28           pberberian@iol.unh.edu
29           sbergeron@iol.unh.edu
30     storperf-receivers: &storperf-receivers
31       receivers: >
32           mbeierl@vmware.com
33     other-receivers: &other-receivers
34       receivers: ''
35
36     dockerfile: "Dockerfile"
37     dockerdir: "docker"
38     arch_tag: ""
39     extra_build_args: ""
40
41     # This is the dockerhub repo the image will be pushed to as
42     # 'opnfv/{dockerrepo}. See: DOCKER_REPO_NAME parameter.
43     # 'project' is the OPNFV repo we expect to contain the Dockerfile
44     # yamllint disable rule:key-duplicates
45     dockerrepo:
46       # projects with jobs for master
47       - 'releng-anteater':
48           project: 'releng-anteater'
49           <<: *master
50           <<: *other-receivers
51       - 'barometer-collectd':
52           project: 'barometer'
53           dockerdir: 'docker/barometer-collectd'
54           <<: *master
55           <<: *other-receivers
56       - 'barometer-collectd-experimental':
57           project: 'barometer'
58           dockerdir: '.'
59           dockerfile: 'docker/barometer-collectd-experimental/Dockerfile'
60           <<: *master
61           <<: *other-receivers
62       - 'barometer-collectd-latest':
63           project: 'barometer'
64           dockerdir: '.'
65           dockerfile: 'docker/barometer-collectd-latest/Dockerfile'
66           <<: *master
67           <<: *other-receivers
68       - 'barometer-dma':
69           project: 'barometer'
70           dockerdir: 'docker/barometer-dma'
71           <<: *master
72           <<: *other-receivers
73       - 'barometer-grafana':
74           project: 'barometer'
75           dockerdir: 'docker/barometer-grafana'
76           <<: *master
77           <<: *other-receivers
78       - 'barometer-influxdb':
79           project: 'barometer'
80           dockerdir: 'docker/barometer-influxdb'
81           <<: *master
82           <<: *other-receivers
83       - 'barometer-kafka':
84           project: 'barometer'
85           dockerdir: 'docker/barometer-kafka'
86           <<: *master
87           <<: *other-receivers
88       - 'barometer-ves':
89           project: 'barometer'
90           dockerdir: 'docker/barometer-ves'
91           <<: *master
92           <<: *other-receivers
93       - 'barometer-snmp':
94           project: 'barometer'
95           dockerdir: 'docker/barometer-snmp'
96           <<: *master
97           <<: *other-receivers
98       - 'clover':
99           project: 'clover'
100           dockerdir: '.'
101           dockerfile: 'docker/Dockerfile'
102           <<: *master
103           <<: *other-receivers
104       - 'clover-ns-nginx-lb':
105           project: 'clover'
106           dockerdir: 'samples/services/nginx/docker'
107           dockerfile: 'subservices/lb/Dockerfile'
108           <<: *master
109           <<: *other-receivers
110       - 'clover-ns-nginx-proxy':
111           project: 'clover'
112           dockerdir: 'samples/services/nginx/docker'
113           dockerfile: 'subservices/proxy/Dockerfile'
114           <<: *master
115           <<: *other-receivers
116       - 'clover-ns-nginx-server':
117           project: 'clover'
118           dockerdir: 'samples/services/nginx/docker'
119           dockerfile: 'subservices/server/Dockerfile'
120           <<: *master
121           <<: *other-receivers
122       - 'clover-ns-snort-ids':
123           project: 'clover'
124           dockerdir: 'samples/services/snort_ids/docker'
125           dockerfile: 'Dockerfile'
126           <<: *master
127           <<: *other-receivers
128       - 'clover-controller':
129           project: 'clover'
130           dockerdir: 'clover/controller'
131           dockerfile: 'docker/Dockerfile'
132           <<: *master
133           <<: *other-receivers
134       - 'clover-collector':
135           project: 'clover'
136           dockerdir: 'clover/collector'
137           dockerfile: 'docker/Dockerfile'
138           <<: *master
139           <<: *other-receivers
140       - 'clover-jmeter-master':
141           project: 'clover'
142           dockerdir: 'clover/tools/jmeter'
143           dockerfile: 'jmeter-master/Dockerfile'
144           <<: *master
145           <<: *other-receivers
146       - 'clover-jmeter-slave':
147           project: 'clover'
148           dockerdir: 'clover/tools/jmeter'
149           dockerfile: 'jmeter-slave/Dockerfile'
150           <<: *master
151           <<: *other-receivers
152       - 'clover-sample-app':
153           project: 'clover'
154           dockerdir: 'samples/scenarios/sample_app'
155           dockerfile: 'Dockerfile'
156           <<: *master
157           <<: *other-receivers
158       - 'clover-ns-modsecurity-crs':
159           project: 'clover'
160           dockerdir: 'samples/services/modsecurity/docker'
161           dockerfile: 'Dockerfile'
162           <<: *master
163           <<: *other-receivers
164       - 'clover-spark':
165           project: 'clover'
166           dockerdir: 'clover/spark/docker/clover-spark'
167           dockerfile: 'Dockerfile'
168           <<: *master
169           <<: *other-receivers
170       - 'clover-spark-submit':
171           project: 'clover'
172           dockerdir: 'clover/spark/docker/spark-submit'
173           dockerfile: 'Dockerfile'
174           <<: *master
175           <<: *other-receivers
176       - 'clover-clovisor':
177           project: 'clover'
178           dockerdir: 'clover/clovisor'
179           dockerfile: 'Dockerfile'
180           <<: *master
181           <<: *other-receivers
182       - 'dovetail':
183           project: 'dovetail'
184           <<: *master
185           <<: *other-receivers
186       - 'dovetail-webportal-api':
187           project: 'dovetail-webportal'
188           dockerfile: 'Dockerfile.api'
189           <<: *master
190           <<: *other-receivers
191       - 'dovetail-webportal-web':
192           project: 'dovetail-webportal'
193           dockerfile: 'Dockerfile.web'
194           <<: *master
195           <<: *other-receivers
196       - 'dovetail-webportal-web-onap':
197           project: 'dovetail-webportal'
198           dockerfile: 'Dockerfile.web'
199           extra_build_args: 'CONTAINER=onap GUI=onap-ui'
200           <<: *master
201           <<: *other-receivers
202       - 'nfvbench':
203           project: 'nfvbench'
204           <<: *master
205           <<: *other-receivers
206       - 'laas-dashboard':
207           project: 'laas'
208           dockerdir: '.'
209           dockerfile: 'web/Dockerfile'
210           <<: *master
211           <<: *laas_receivers
212       - 'laas-celery':
213           project: 'laas'
214           dockerdir: '.'
215           dockerfile: 'worker/Dockerfile'
216           <<: *master
217           <<: *laas_receivers
218       - 'storperf-master':
219           project: 'storperf'
220           dockerdir: 'docker/storperf-master'
221           arch_tag: 'x86_64'
222           <<: *master
223           <<: *storperf-receivers
224       - 'storperf-graphite':
225           project: 'storperf'
226           dockerdir: 'docker/storperf-graphite'
227           arch_tag: 'x86_64'
228           <<: *master
229           <<: *storperf-receivers
230       - 'storperf-httpfrontend':
231           project: 'storperf'
232           dockerdir: 'docker/storperf-httpfrontend'
233           arch_tag: 'x86_64'
234           <<: *master
235           <<: *storperf-receivers
236       - 'storperf-reporting':
237           project: 'storperf'
238           dockerdir: 'docker/storperf-reporting'
239           arch_tag: 'x86_64'
240           <<: *master
241           <<: *storperf-receivers
242       - 'storperf-swaggerui':
243           project: 'storperf'
244           dockerdir: 'docker/storperf-swaggerui'
245           arch_tag: 'x86_64'
246           <<: *master
247           <<: *storperf-receivers
248       - 'storperf-workloadagent':
249           project: 'storperf'
250           dockerdir: 'docker/storperf-workloadagent'
251           arch_tag: 'x86_64'
252           <<: *master
253           <<: *storperf-receivers
254
255       # projects with jobs for hunter
256       - 'dovetail':
257           project: 'dovetail'
258           <<: *hunter
259           <<: *other-receivers
260
261       # projects with jobs for iruya
262       - 'storperf-master':
263           project: 'storperf'
264           dockerdir: 'docker/storperf-master'
265           arch_tag: 'x86_64'
266           <<: *iruya
267           <<: *storperf-receivers
268       - 'storperf-graphite':
269           project: 'storperf'
270           dockerdir: 'docker/storperf-graphite'
271           arch_tag: 'x86_64'
272           <<: *iruya
273           <<: *storperf-receivers
274       - 'storperf-httpfrontend':
275           project: 'storperf'
276           dockerdir: 'docker/storperf-httpfrontend'
277           arch_tag: 'x86_64'
278           <<: *iruya
279           <<: *storperf-receivers
280       - 'storperf-reporting':
281           project: 'storperf'
282           dockerdir: 'docker/storperf-reporting'
283           arch_tag: 'x86_64'
284           <<: *iruya
285           <<: *storperf-receivers
286       - 'storperf-swaggerui':
287           project: 'storperf'
288           dockerdir: 'docker/storperf-swaggerui'
289           arch_tag: 'x86_64'
290           <<: *iruya
291           <<: *storperf-receivers
292       - 'storperf-workloadagent':
293           project: 'storperf'
294           dockerdir: 'docker/storperf-workloadagent'
295           arch_tag: 'x86_64'
296           <<: *iruya
297           <<: *storperf-receivers
298
299       # projects with jobs for jerma
300       - 'barometer-collectd':
301           project: 'barometer'
302           dockerdir: 'docker/barometer-collectd'
303           <<: *jerma
304           <<: *other-receivers
305       - 'barometer-collectd-experimental':
306           project: 'barometer'
307           dockerdir: '.'
308           dockerfile: 'docker/barometer-collectd-experimental/Dockerfile'
309           <<: *jerma
310           <<: *other-receivers
311       - 'barometer-collectd-latest':
312           project: 'barometer'
313           dockerdir: '.'
314           dockerfile: 'docker/barometer-collectd-latest/Dockerfile'
315           <<: *jerma
316           <<: *other-receivers
317       - 'barometer-dma':
318           project: 'barometer'
319           dockerdir: 'docker/barometer-dma'
320           <<: *jerma
321           <<: *other-receivers
322       - 'barometer-grafana':
323           project: 'barometer'
324           dockerdir: 'docker/barometer-grafana'
325           <<: *jerma
326           <<: *other-receivers
327       - 'barometer-influxdb':
328           project: 'barometer'
329           dockerdir: 'docker/barometer-influxdb'
330           <<: *jerma
331           <<: *other-receivers
332       - 'barometer-kafka':
333           project: 'barometer'
334           dockerdir: 'docker/barometer-kafka'
335           <<: *jerma
336           <<: *other-receivers
337       - 'barometer-ves':
338           project: 'barometer'
339           dockerdir: 'docker/barometer-ves'
340           <<: *jerma
341           <<: *other-receivers
342       - 'barometer-snmp':
343           project: 'barometer'
344           dockerdir: 'docker/barometer-snmp'
345           <<: *jerma
346           <<: *other-receivers
347
348     # yamllint enable rule:key-duplicates
349     jobs:
350       - "{dockerrepo}-docker-build-push-{stream}"
351
352 ########################
353 # job templates
354 ########################
355 - job-template:
356     name: '{dockerrepo}-docker-build-push-{stream}'
357
358     disabled: '{obj:disabled}'
359
360     parameters: &parameters
361       - project-parameter:
362           project: '{project}'
363           branch: '{branch}'
364       - 'opnfv-build-ubuntu-defaults'
365       - string:
366           name: PUSH_IMAGE
367           default: "true"
368           description: "To enable/disable pushing the image to Dockerhub."
369       - string:
370           name: DOCKER_REPO_NAME
371           default: "opnfv/{dockerrepo}"
372           description: "Dockerhub repo to be pushed to."
373       - string:
374           name: DOCKER_DIR
375           default: "{dockerdir}"
376           description: "Directory containing files needed by the Dockerfile"
377       - string:
378           name: COMMIT_ID
379           default: ""
380           description: "commit id to make a snapshot docker image"
381       - string:
382           name: GERRIT_REFNAME
383           default: ""
384           description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
385       - string:
386           name: DOCKERFILE
387           default: "{dockerfile}"
388           description: "Dockerfile to use for creating the image."
389       - string:
390           name: ARCH_TAG
391           default: "{arch_tag}"
392           description: "If set, this value will be added to the docker image tag as a prefix"
393       - string:
394           name: EXTRA_BUILD_ARGS
395           default: "{extra_build_args}"
396           description: "Whitespace separated key=value pairs. If set, these args will be used to build docker image"
397
398     properties:
399       - throttle:
400           max-per-node: 1
401           option: 'project'
402
403     scm:
404       - git-scm
405
406     builders: &builders
407       - shell:
408           !include-raw-escape: ./opnfv-docker.sh
409
410     triggers:
411       - pollscm:
412           cron: "*/30 * * * *"
413       - gerrit-trigger-tag-created:
414           project: '{project}'
415
416     publishers:
417       - email:
418           recipients: '{receivers}'
419       - email-jenkins-admins-on-failure