Update sonar jobs to global-jjb
[releng/builder.git] / jjb / releng-jobs.yaml
1 ---
2 - project:
3     name: builder-jobs
4     jobs:
5       - '{project-name}-ci-jobs'
6       - builder-check-poms
7       - gerrit-tox-verify
8       # OpenStack Related
9       - 'builder-verify-image-visibility'
10       - 'builder-cleanup-old-images'
11       - 'builder-delete-stale-nodes'
12       - 'builder-delete-stale-stacks'
13       # Automation for docs and jobs
14       - 'builder-update-image-list'
15
16     # The following values are only specified here
17     # so that code blocks look similar to other projects.
18     project: 'releng/builder'
19     project-name: builder
20     stream: master
21     branch: master
22     build-node: centos7-java-builder-2c-4g
23     archive-artifacts: '**/*.log'
24     build-timeout: 10
25
26 - project:
27     name: packer-jobs
28     # packer jobs templates are defined in global-jjb
29     jobs:
30       - '{project-name}-packer-jobs'
31     project: 'releng/builder'
32     project-name: builder
33     branch: master
34     archive-artifacts: '**/*.log'
35
36     platforms:
37       - centos
38       - ubuntu-14.04
39       - ubuntu-16.04
40
41     templates:
42       - devstack
43       - devstack-pre-pip-newton:
44           build-timeout: 75
45       - devstack-pre-pip-ocata:
46           build-timeout: 60
47       - devstack-pre-pip-pike:
48           build-timeout: 75
49       - docker:
50           build-timeout: 60
51       - gbp
52       - java-builder:
53           build-timeout: 75
54       - mininet
55       - mininet-ovs-2.5:
56           build-timeout: 60
57       - mininet-ovs-2.6:
58           build-timeout: 75
59       - robot
60
61     exclude:
62       - platforms: centos
63         templates: gbp
64       - platforms: centos
65         templates: mininet
66       - platforms: centos
67         templates: mininet-ovs-2.5
68       - platforms: centos
69         templates: mininet-ovs-2.6
70       - platforms: ubuntu-14.04
71         templates: java-builder
72       - platforms: ubuntu-14.04
73         templates: robot
74       - platforms: ubuntu-14.04
75         templates: devstack-pre-pip-newton
76       - platforms: ubuntu-14.04
77         templates: devstack-pre-pip-ocata
78       - platforms: ubuntu-14.04
79         templates: devstack-pre-pip-pike
80       - platforms: ubuntu-14.04
81         templates: devstack
82       - platforms: ubuntu-14.04
83         templates: docker
84       - platforms: ubuntu-14.04
85         templates: mininet-ovs-2.5
86       - platforms: ubuntu-14.04
87         templates: mininet-ovs-2.6
88       - platforms: ubuntu-16.04
89         templates: java-builder
90       - platforms: ubuntu-16.04
91         templates: robot
92       - platforms: ubuntu-16.04
93         templates: devstack-pre-pip-newton
94       - platforms: ubuntu-16.04
95         templates: devstack-pre-pip-ocata
96       - platforms: ubuntu-16.04
97         templates: devstack-pre-pip-pike
98       - platforms: ubuntu-16.04
99         templates: devstack
100       - platforms: ubuntu-16.04
101         templates: docker
102       - platforms: ubuntu-16.04
103         templates: mininet
104       - platforms: ubuntu-16.04
105         templates: gbp
106       - platforms: ubuntu-16.04
107         templates: baseline
108       - platforms: centos
109         templates: baseline
110
111 - job-template:
112     name: builder-check-poms
113     node: centos7-java-builder-2c-4g
114
115     project-type: freestyle
116
117     properties:
118       - opendaylight-infra-properties:
119           build-days-to-keep: 14
120
121     parameters:
122       - opendaylight-infra-parameters:
123           os-cloud: '{os-cloud}'
124           project: '{project}'
125           branch: '{branch}'
126           refspec: 'refs/heads/{branch}'
127           artifacts: '{archive-artifacts}'
128
129     wrappers:
130       - opendaylight-infra-wrappers:
131           build-timeout: '{build-timeout}'
132
133     triggers:
134       - timed: 'H H * * 1'
135
136     builders:
137       - shell: !include-raw-escape: check-poms.sh
138
139     publishers:
140       - email-notification:
141           email-recipients: '{email-recipients}'
142           email-prefix: '[releng]'
143       - lf-infra-publish
144
145
146 - job-template:
147     name: 'builder-verify-image-visibility'
148     project-type: freestyle
149     node: centos7-java-builder-2c-4g
150
151     os-cloud: 'odlpriv-sandbox'
152
153     properties:
154       - opendaylight-infra-properties:
155           build-days-to-keep: 7
156
157     parameters:
158       - opendaylight-infra-parameters:
159           os-cloud: '{os-cloud}'
160           project: '{project}'
161           branch: '{branch}'
162           refspec: 'refs/heads/{branch}'
163           artifacts: '{archive-artifacts}'
164
165     scm:
166       - git-scm:
167           branch: '{branch}'
168
169     wrappers:
170       - opendaylight-infra-wrappers:
171           build-timeout: '{build-timeout}'
172       # Listed after to override openstack-infra-wrappers clouds.yaml definition
173       - config-file-provider:
174           files:
175             - file-id: opendaylight-private-clouds-yaml
176               target: '$HOME/.config/openstack/clouds.yaml'
177
178     triggers:
179       # Check images visibility on a daily schedule
180       - timed: '@daily'
181
182     builders:
183       - shell: !include-raw-escape:
184           - opendaylight-infra-check-image-visibility.sh
185
186     publishers:
187       - email-notification:
188           email-recipients: '{email-recipients}'
189           email-prefix: '[releng]'
190       - lf-infra-publish
191
192
193 - job-template:
194     name: 'builder-cleanup-old-images'
195     project-type: freestyle
196     node: centos7-java-builder-2c-4g
197
198     properties:
199       - opendaylight-infra-properties:
200           build-days-to-keep: 7
201
202     parameters:
203       - opendaylight-infra-parameters:
204           os-cloud: '{os-cloud}'
205           project: '{project}'
206           branch: '{branch}'
207           refspec: 'refs/heads/{branch}'
208           artifacts: '{archive-artifacts}'
209
210     scm:
211       - git-scm:
212           branch: '{branch}'
213
214     wrappers:
215       - opendaylight-infra-wrappers:
216           build-timeout: '{build-timeout}'
217       # Listed after to override openstack-infra-wrappers clouds.yaml definition
218       - config-file-provider:
219           files:
220             - file-id: opendaylight-private-clouds-yaml
221               target: '$HOME/.config/openstack/clouds.yaml'
222
223     triggers:
224       # Cleanup images on a weekly schedule
225       - timed: '@weekly'
226
227     builders:
228       - shell: !include-raw-escape:
229           - global-jjb/shell/lftools-install.sh
230           - opendaylight-infra-cleanup-old-images.sh
231
232     publishers:
233       - email-notification:
234           email-recipients: '{email-recipients}'
235           email-prefix: '[releng]'
236       - lf-infra-publish
237
238
239 - job-template:
240     name: 'builder-delete-stale-nodes'
241     project-type: freestyle
242     node: centos7-java-builder-2c-4g
243
244     properties:
245       - opendaylight-infra-properties:
246           build-days-to-keep: 7
247
248     parameters:
249       - opendaylight-infra-parameters:
250           os-cloud: '{os-cloud}'
251           project: '{project}'
252           branch: '{branch}'
253           refspec: 'refs/heads/{branch}'
254           artifacts: '{archive-artifacts}'
255
256     wrappers:
257       - opendaylight-infra-wrappers:
258           build-timeout: '{build-timeout}'
259
260     triggers:
261       # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
262       - timed: '0,30 * * * *'
263
264     builders:
265       - shell: !include-raw-escape:
266           - global-jjb/shell/lftools-install.sh
267           - opendaylight-infra-cleanup-stale-nodes.sh
268
269     publishers:
270       - email-notification:
271           email-recipients: '{email-recipients}'
272           email-prefix: '[releng]'
273       - lf-infra-publish
274
275
276 - job-template:
277     name: 'builder-delete-stale-stacks'
278     project-type: freestyle
279     node: centos7-java-builder-2c-4g
280
281     properties:
282       - opendaylight-infra-properties:
283           build-days-to-keep: 7
284
285     parameters:
286       - opendaylight-infra-parameters:
287           os-cloud: '{os-cloud}'
288           project: '{project}'
289           branch: '{branch}'
290           refspec: 'refs/heads/{branch}'
291           artifacts: '{archive-artifacts}'
292
293     wrappers:
294       - opendaylight-infra-wrappers:
295           build-timeout: '{build-timeout}'
296
297     triggers:
298       # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
299       - timed: '0,30 * * * *'
300
301     builders:
302       - shell: !include-raw-escape: opendaylight-infra-cleanup-stale-stacks.sh
303
304     publishers:
305       - email-notification:
306           email-recipients: '{email-recipients}'
307           email-prefix: '[releng]'
308       - lf-infra-publish
309
310
311 - job-template:
312     name: 'builder-update-image-list'
313     project-type: freestyle
314     node: centos7-java-builder-2c-4g
315
316     properties:
317       - opendaylight-infra-properties:
318           build-days-to-keep: 7
319
320     parameters:
321       - opendaylight-infra-parameters:
322           os-cloud: odlpriv
323           project: '{project}'
324           branch: '{branch}'
325           refspec: 'refs/heads/{branch}'
326           artifacts: '{archive-artifacts}'
327
328     scm:
329       - git-scm:
330           branch: '{branch}'
331
332     wrappers:
333       - opendaylight-infra-wrappers:
334           build-timeout: '{build-timeout}'
335       # Listed after to override openstack-infra-wrappers clouds.yaml definition
336       - config-file-provider:
337           files:
338             - file-id: opendaylight-private-clouds-yaml
339               target: '$HOME/.config/openstack/clouds.yaml'
340
341     triggers:
342       # Update image list every Monday to Friday at 11:00 UTC
343       - timed: '0 11 * * 1-5'
344
345     builders:
346       - shell: !include-raw-escape: opendaylight-infra-update-image-list.sh
347       - opendaylight-infra-push-gerrit-patch:
348           project: '{project}'
349           gerrit-topic: 'releng-update-cloud-image-list'
350           gerrit-commit-message: 'Update cloud image list docs'
351
352     publishers:
353       - email-notification:
354           email-recipients: '{email-recipients}'
355           email-prefix: '[releng]'
356       - lf-infra-publish