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