Increase ocata packer timeout from 60m to 75m
[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-builder-2c-8g
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-builder-2c-8g
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: 75
49       - devstack-pre-pip-pike:
50           build-timeout: 75
51       - gbp
52       - mininet
53       - mininet-ovs-2.5:
54           build-timeout: 60
55       - mininet-ovs-2.6:
56           build-timeout: 75
57
58     exclude:
59       - platforms: centos
60         templates: gbp
61       - platforms: centos
62         templates: mininet
63       - platforms: centos
64         templates: mininet-ovs-2.5
65       - platforms: centos
66         templates: mininet-ovs-2.6
67       - platforms: ubuntu-14.04
68         templates: devstack-pre-pip-newton
69       - platforms: ubuntu-14.04
70         templates: devstack-pre-pip-ocata
71       - platforms: ubuntu-14.04
72         templates: devstack-pre-pip-pike
73       - platforms: ubuntu-14.04
74         templates: devstack
75       - platforms: ubuntu-14.04
76         templates: mininet-ovs-2.5
77       - platforms: ubuntu-14.04
78         templates: mininet-ovs-2.6
79       - platforms: ubuntu-16.04
80         templates: devstack-pre-pip-newton
81       - platforms: ubuntu-16.04
82         templates: devstack-pre-pip-ocata
83       - platforms: ubuntu-16.04
84         templates: devstack-pre-pip-pike
85       - platforms: ubuntu-16.04
86         templates: devstack
87       - platforms: ubuntu-16.04
88         templates: mininet
89       - platforms: ubuntu-16.04
90         templates: baseline
91       - platforms: centos
92         templates: baseline
93
94 - job-template:
95     name: builder-check-poms
96     node: centos7-builder-2c-8g
97
98     project-type: freestyle
99
100     properties:
101       - opendaylight-infra-properties:
102           build-days-to-keep: 14
103
104     parameters:
105       - opendaylight-infra-parameters:
106           os-cloud: '{os-cloud}'
107           project: '{project}'
108           branch: '{branch}'
109           refspec: 'refs/heads/{branch}'
110           artifacts: '{archive-artifacts}'
111
112     wrappers:
113       - opendaylight-infra-wrappers:
114           build-timeout: '{build-timeout}'
115
116     triggers:
117       - timed: 'H H * * 1'
118
119     builders:
120       - shell: !include-raw-escape: check-poms.sh
121
122     publishers:
123       - email-notification:
124           email-recipients: '{email-recipients}'
125           email-prefix: '[releng]'
126       - lf-infra-publish
127
128
129 - job-template:
130     name: 'builder-verify-image-protection'
131     project-type: freestyle
132     node: centos7-builder-2c-8g
133
134     properties:
135       - opendaylight-infra-properties:
136           build-days-to-keep: 7
137
138     parameters:
139       - opendaylight-infra-parameters:
140           os-cloud: '{os-cloud}'
141           project: '{project}'
142           branch: '{branch}'
143           refspec: 'refs/heads/{branch}'
144           artifacts: '{archive-artifacts}'
145
146     scm:
147       - git-scm:
148           branch: '{branch}'
149
150     wrappers:
151       - opendaylight-infra-wrappers:
152           build-timeout: '{build-timeout}'
153       # Listed after to override openstack-infra-wrappers clouds.yaml definition
154       - config-file-provider:
155           files:
156             - file-id: clouds-yaml
157               target: '$HOME/.config/openstack/clouds.yaml'
158
159     triggers:
160       - timed: '@daily'
161
162     builders:
163       - shell: !include-raw-escape:
164           - opendaylight-infra-check-image-protection.sh
165
166     publishers:
167       - email-notification:
168           email-recipients: '{email-recipients}'
169           email-prefix: '[releng]'
170       - lf-infra-publish
171
172
173 - job-template:
174     name: 'builder-cleanup-old-images'
175     project-type: freestyle
176     node: centos7-builder-2c-8g
177
178     properties:
179       - opendaylight-infra-properties:
180           build-days-to-keep: 7
181
182     parameters:
183       - opendaylight-infra-parameters:
184           os-cloud: '{os-cloud}'
185           project: '{project}'
186           branch: '{branch}'
187           refspec: 'refs/heads/{branch}'
188           artifacts: '{archive-artifacts}'
189
190     scm:
191       - git-scm:
192           branch: '{branch}'
193
194     wrappers:
195       - opendaylight-infra-wrappers:
196           build-timeout: '{build-timeout}'
197       # Listed after to override openstack-infra-wrappers clouds.yaml definition
198       - config-file-provider:
199           files:
200             - file-id: clouds-yaml
201               target: '$HOME/.config/openstack/clouds.yaml'
202
203     triggers:
204       # Cleanup images on a weekly schedule
205       - timed: '@weekly'
206
207     builders:
208       - shell: !include-raw-escape:
209           - global-jjb/shell/lftools-install.sh
210           - opendaylight-infra-cleanup-old-images.sh
211
212     publishers:
213       - email-notification:
214           email-recipients: '{email-recipients}'
215           email-prefix: '[releng]'
216       - lf-infra-publish
217
218
219 - job-template:
220     name: builder-delete-orphaned-nodes
221     project-type: freestyle
222     node: centos7-builder-2c-8g
223
224     properties:
225       - opendaylight-infra-properties:
226           build-days-to-keep: 7
227
228     parameters:
229       - opendaylight-infra-parameters:
230           os-cloud: '{os-cloud}'
231           project: '{project}'
232           branch: '{branch}'
233           refspec: 'refs/heads/{branch}'
234           artifacts: '{archive-artifacts}'
235       - string:
236           name: JENKINS_URLS
237           default: 'https://jenkins.opendaylight.org/releng https://jenkins.opendaylight.org/sandbox'
238           description: 'Space separated list of Jenkins URLs to check for active builds'
239
240     wrappers:
241       - opendaylight-infra-wrappers:
242           build-timeout: '{build-timeout}'
243
244     triggers:
245       # Attempt to clear up servers every 30 mins in case we have orphaned servers
246       - timed: '0,30 * * * *'
247
248     builders:
249       - shell: !include-raw-escape: opendaylight-infra-cleanup-orphaned-nodes.sh
250
251     publishers:
252       - email-notification:
253           email-recipients: '{email-recipients}'
254           email-prefix: '[releng]'
255       - lf-infra-publish
256
257
258 - job-template:
259     name: 'builder-delete-stale-nodes'
260     project-type: freestyle
261     node: centos7-builder-2c-8g
262
263     properties:
264       - opendaylight-infra-properties:
265           build-days-to-keep: 7
266
267     parameters:
268       - opendaylight-infra-parameters:
269           os-cloud: '{os-cloud}'
270           project: '{project}'
271           branch: '{branch}'
272           refspec: 'refs/heads/{branch}'
273           artifacts: '{archive-artifacts}'
274
275     wrappers:
276       - opendaylight-infra-wrappers:
277           build-timeout: '{build-timeout}'
278
279     triggers:
280       # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
281       - timed: '0,30 * * * *'
282
283     builders:
284       - shell: !include-raw-escape:
285           - global-jjb/shell/lftools-install.sh
286           - opendaylight-infra-cleanup-stale-nodes.sh
287
288     publishers:
289       - email-notification:
290           email-recipients: '{email-recipients}'
291           email-prefix: '[releng]'
292       - lf-infra-publish
293
294
295 - job-template:
296     name: 'builder-delete-stale-stacks'
297     project-type: freestyle
298     node: centos7-builder-2c-8g
299
300     properties:
301       - opendaylight-infra-properties:
302           build-days-to-keep: 7
303
304     parameters:
305       - opendaylight-infra-parameters:
306           os-cloud: '{os-cloud}'
307           project: '{project}'
308           branch: '{branch}'
309           refspec: 'refs/heads/{branch}'
310           artifacts: '{archive-artifacts}'
311       - string:
312           name: JENKINS_URLS
313           default: 'https://jenkins.opendaylight.org/releng https://jenkins.opendaylight.org/sandbox'
314           description: 'Space separated list of Jenkins URLs to check for active builds'
315
316     wrappers:
317       - opendaylight-infra-wrappers:
318           build-timeout: '{build-timeout}'
319
320     triggers:
321       # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
322       - timed: '0,30 * * * *'
323
324     builders:
325       - shell: !include-raw-escape: opendaylight-infra-cleanup-stale-stacks.sh
326
327     publishers:
328       - email-notification:
329           email-recipients: '{email-recipients}'
330           email-prefix: '[releng]'
331       - lf-infra-publish
332
333
334 - job-template:
335     name: 'builder-update-image-list'
336     project-type: freestyle
337     node: centos7-builder-2c-8g
338
339     properties:
340       - opendaylight-infra-properties:
341           build-days-to-keep: 7
342
343     parameters:
344       - opendaylight-infra-parameters:
345           os-cloud: vex
346           project: '{project}'
347           branch: '{branch}'
348           refspec: 'refs/heads/{branch}'
349           artifacts: '{archive-artifacts}'
350
351     scm:
352       - git-scm:
353           branch: '{branch}'
354
355     wrappers:
356       - opendaylight-infra-wrappers:
357           build-timeout: '{build-timeout}'
358       # Listed after to override openstack-infra-wrappers clouds.yaml definition
359       - config-file-provider:
360           files:
361             - file-id: clouds-yaml
362               target: '$HOME/.config/openstack/clouds.yaml'
363
364     triggers:
365       # Update image list every Monday to Friday at 11:00 UTC
366       - timed: '0 11 * * 1-5'
367
368     builders:
369       - shell: !include-raw-escape: opendaylight-infra-update-image-list.sh
370       - opendaylight-infra-push-gerrit-patch:
371           project: '{project}'
372           gerrit-topic: 'releng-update-cloud-image-list'
373           gerrit-commit-message: 'Update cloud image list docs'
374
375     publishers:
376       - email-notification:
377           email-recipients: '{email-recipients}'
378           email-prefix: '[releng]'
379       - lf-infra-publish