5 - '{project-name}-ci-jobs':
6 build-node: centos7-builder-2c-2g
8 - builder-copy-sandbox-logs
9 - builder-openstack-cron
12 - 'builder-cleanup-old-images'
13 - 'builder-delete-orphaned-nodes'
14 - 'builder-delete-stale-nodes'
15 - 'builder-delete-stale-stacks'
16 # Automation for docs and jobs
17 - 'builder-update-image-list'
19 # The following values are only specified here
20 # so that code blocks look similar to other projects.
21 project: 'releng/builder'
25 build-node: centos7-builder-2c-1g
26 archive-artifacts: '**/*.log'
32 # packer jobs templates are defined in global-jjb
34 - '{project-name}-packer-jobs'
35 project: 'releng/builder'
38 archive-artifacts: '**/*.log'
39 build-node: centos7-builder-2c-1g
48 - devstack-pre-pip-newton:
50 - devstack-pre-pip-ocata:
52 - devstack-pre-pip-pike:
64 templates: mininet-ovs-2.5
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
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
89 name: builder-check-poms
90 node: centos7-builder-2c-1g
92 project-type: freestyle
95 - opendaylight-infra-properties:
96 build-days-to-keep: 14
99 - opendaylight-infra-parameters:
100 os-cloud: '{os-cloud}'
103 refspec: 'refs/heads/{branch}'
104 artifacts: '{archive-artifacts}'
107 - opendaylight-infra-wrappers:
108 build-timeout: '{build-timeout}'
114 - shell: !include-raw-escape: check-poms.sh
117 - email-notification:
118 email-recipients: '{email-recipients}'
119 email-prefix: '[releng]'
123 name: builder-copy-sandbox-logs
124 node: centos7-builder-2c-1g
126 project-type: freestyle
129 - opendaylight-infra-properties:
130 build-days-to-keep: 1
133 - opendaylight-infra-parameters:
141 - opendaylight-infra-wrappers:
146 server-name: '{gerrit-server-name}'
148 - comment-added-contains-event:
149 comment-contains-value: 'copy-logs:'
151 - project-compare-type: ANT
152 project-pattern: '**'
154 - branch-compare-type: ANT
158 - shell: !include-raw-escape: copy-sandbox-logs.sh
165 name: builder-openstack-cron
166 project-type: freestyle
170 - lf-infra-properties:
171 build-days-to-keep: 7
174 - lf-infra-parameters:
178 lftools-version: '{lftools-version}'
181 default: '{os-cloud}'
182 description: Artifacts to archive to the logs server.
184 name: ARCHIVE_ARTIFACTS
185 default: '{archive-artifacts}'
186 description: Artifacts to archive to the logs server.
194 build-timeout: '{build-timeout}'
195 jenkins-ssh-credential: '{jenkins-ssh-credential}'
196 # Listed after to override openstack-infra-wrappers clouds.yaml definition
197 - config-file-provider:
199 - file-id: clouds-yaml
200 target: '$HOME/.config/openstack/clouds.yaml'
203 - timed: '0,30 * * * *'
206 - odl-openstack-install
207 - shell: !include-raw-escape: global-jjb/shell/lftools-install.sh
208 - odl-openstack-check-image-protection
215 name: 'builder-cleanup-old-images'
216 project-type: freestyle
217 node: centos7-builder-2c-1g
220 - opendaylight-infra-properties:
221 build-days-to-keep: 7
224 - opendaylight-infra-parameters:
225 os-cloud: '{os-cloud}'
228 refspec: 'refs/heads/{branch}'
229 artifacts: '{archive-artifacts}'
236 - opendaylight-infra-wrappers:
237 build-timeout: '{build-timeout}'
238 # Listed after to override openstack-infra-wrappers clouds.yaml definition
239 - config-file-provider:
241 - file-id: clouds-yaml
242 target: '$HOME/.config/openstack/clouds.yaml'
245 # Cleanup images on a weekly schedule
249 - shell: !include-raw-escape:
250 - global-jjb/shell/lftools-install.sh
251 - opendaylight-infra-cleanup-old-images.sh
254 - email-notification:
255 email-recipients: '{email-recipients}'
256 email-prefix: '[releng]'
261 name: builder-delete-orphaned-nodes
262 project-type: freestyle
263 node: centos7-builder-2c-1g
266 - opendaylight-infra-properties:
267 build-days-to-keep: 7
270 - opendaylight-infra-parameters:
271 os-cloud: '{os-cloud}'
274 refspec: 'refs/heads/{branch}'
275 artifacts: '{archive-artifacts}'
278 default: 'https://jenkins.opendaylight.org/releng https://jenkins.opendaylight.org/sandbox'
279 description: 'Space separated list of Jenkins URLs to check for active builds'
282 - opendaylight-infra-wrappers:
283 build-timeout: '{build-timeout}'
286 # Attempt to clear up servers every 30 mins in case we have orphaned servers
287 - timed: '0,30 * * * *'
290 - shell: !include-raw-escape: opendaylight-infra-cleanup-orphaned-nodes.sh
293 - email-notification:
294 email-recipients: '{email-recipients}'
295 email-prefix: '[releng]'
300 name: 'builder-delete-stale-nodes'
301 project-type: freestyle
302 node: centos7-builder-2c-1g
305 - opendaylight-infra-properties:
306 build-days-to-keep: 7
309 - opendaylight-infra-parameters:
310 os-cloud: '{os-cloud}'
313 refspec: 'refs/heads/{branch}'
314 artifacts: '{archive-artifacts}'
317 - opendaylight-infra-wrappers:
318 build-timeout: '{build-timeout}'
321 # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
322 - timed: '0,30 * * * *'
325 - shell: !include-raw-escape:
326 - global-jjb/shell/lftools-install.sh
327 - opendaylight-infra-cleanup-stale-nodes.sh
330 - email-notification:
331 email-recipients: '{email-recipients}'
332 email-prefix: '[releng]'
337 name: 'builder-delete-stale-stacks'
338 project-type: freestyle
339 node: centos7-builder-2c-1g
342 - opendaylight-infra-properties:
343 build-days-to-keep: 7
346 - opendaylight-infra-parameters:
347 os-cloud: '{os-cloud}'
350 refspec: 'refs/heads/{branch}'
351 artifacts: '{archive-artifacts}'
354 default: 'https://jenkins.opendaylight.org/releng https://jenkins.opendaylight.org/sandbox'
355 description: 'Space separated list of Jenkins URLs to check for active builds'
358 - opendaylight-infra-wrappers:
359 build-timeout: '{build-timeout}'
362 # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
363 - timed: '0,30 * * * *'
366 - shell: !include-raw-escape: opendaylight-infra-cleanup-stale-stacks.sh
369 - email-notification:
370 email-recipients: '{email-recipients}'
371 email-prefix: '[releng]'
376 name: 'builder-update-image-list'
377 project-type: freestyle
378 node: centos7-builder-2c-1g
381 - opendaylight-infra-properties:
382 build-days-to-keep: 7
385 - opendaylight-infra-parameters:
389 refspec: 'refs/heads/{branch}'
390 artifacts: '{archive-artifacts}'
397 - opendaylight-infra-wrappers:
398 build-timeout: '{build-timeout}'
399 # Listed after to override openstack-infra-wrappers clouds.yaml definition
400 - config-file-provider:
402 - file-id: clouds-yaml
403 target: '$HOME/.config/openstack/clouds.yaml'
406 # Update image list every Monday to Friday at 11:00 UTC
407 - timed: '0 11 * * 1-5'
410 - shell: !include-raw-escape: opendaylight-infra-update-image-list.sh
411 - opendaylight-infra-push-gerrit-patch:
413 gerrit-topic: 'releng-update-cloud-image-list'
414 gerrit-commit-message: 'Update cloud image list docs'
417 - email-notification:
418 email-recipients: '{email-recipients}'
419 email-prefix: '[releng]'