5 - '{project-name}-ci-jobs'
6 - '{project-name}-verify-tox-{stream}'
9 - 'builder-cleanup-old-images'
10 - 'builder-delete-stale-nodes'
11 - 'builder-delete-stale-stacks'
12 # Automation for docs and jobs
13 - 'builder-update-csit-tests'
14 - 'builder-update-image-list'
16 # The following values are only specified here
17 # so that code blocks look similar to other projects.
18 project: 'releng/builder'
22 build-node: centos7-java-builder-2c-4g
23 archive-artifacts: '**/*.log'
27 name: builder-packer-jobs
29 - 'builder-merge-packer-{platforms}-{templates}'
30 - 'builder-verify-packer'
32 project: 'releng/builder'
35 archive-artifacts: '**/*.log'
45 - devstack-pre-pip-newton
46 - devstack-pre-pip-ocata
60 templates: mininet-ovs-2.5
61 - platforms: ubuntu-14.04
62 templates: java-builder
63 - platforms: ubuntu-14.04
65 - platforms: ubuntu-14.04
66 templates: devstack-pre-pip-newton
67 - platforms: ubuntu-14.04
68 templates: devstack-pre-pip-ocata
69 - platforms: ubuntu-14.04
71 - platforms: ubuntu-14.04
73 - platforms: ubuntu-14.04
74 templates: mininet-ovs-2.5
75 - platforms: ubuntu-16.04
76 templates: java-builder
77 - platforms: ubuntu-16.04
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
85 - platforms: ubuntu-16.04
87 - platforms: ubuntu-16.04
89 - platforms: ubuntu-16.04
94 name: builder-check-poms
95 node: centos7-java-builder-2c-4g
97 project-type: freestyle
100 - opendaylight-infra-properties:
101 build-days-to-keep: 14
104 - opendaylight-infra-parameters:
105 os-cloud: '{os-cloud}'
108 refspec: 'refs/heads/{branch}'
109 artifacts: '{archive-artifacts}'
112 - opendaylight-infra-wrappers:
113 build-timeout: '{build-timeout}'
119 - shell: !include-raw-escape: include-raw-check-poms.sh
122 - email-notification:
123 email-recipients: '{email-recipients}'
124 email-prefix: '[releng]'
129 name: 'builder-cleanup-old-images'
130 project-type: freestyle
131 node: centos7-java-builder-2c-4g
134 - opendaylight-infra-properties:
135 build-days-to-keep: 7
138 - opendaylight-infra-parameters:
139 os-cloud: '{os-cloud}'
142 refspec: 'refs/heads/{branch}'
143 artifacts: '{archive-artifacts}'
150 - opendaylight-infra-wrappers:
151 build-timeout: '{build-timeout}'
152 # Listed after to override openstack-infra-wrappers clouds.yaml definition
153 - config-file-provider:
155 - file-id: opendaylight-private-clouds-yaml
156 target: '$HOME/.config/openstack/clouds.yaml'
159 # Cleanup images on a weekly schedule
163 - shell: !include-raw-escape:
164 - global-jjb/shell/lftools-install.sh
165 - opendaylight-infra-cleanup-old-images.sh
168 - email-notification:
169 email-recipients: '{email-recipients}'
170 email-prefix: '[releng]'
175 name: 'builder-delete-stale-nodes'
176 project-type: freestyle
177 node: centos7-java-builder-2c-4g
180 - opendaylight-infra-properties:
181 build-days-to-keep: 7
184 - opendaylight-infra-parameters:
185 os-cloud: '{os-cloud}'
188 refspec: 'refs/heads/{branch}'
189 artifacts: '{archive-artifacts}'
192 - opendaylight-infra-wrappers:
193 build-timeout: '{build-timeout}'
196 # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
197 - timed: '0,30 * * * *'
200 - shell: !include-raw-escape:
201 - global-jjb/shell/lftools-install.sh
202 - opendaylight-infra-cleanup-stale-nodes.sh
205 - email-notification:
206 email-recipients: '{email-recipients}'
207 email-prefix: '[releng]'
212 name: 'builder-delete-stale-stacks'
213 project-type: freestyle
214 node: centos7-java-builder-2c-4g
217 - opendaylight-infra-properties:
218 build-days-to-keep: 7
221 - opendaylight-infra-parameters:
222 os-cloud: '{os-cloud}'
225 refspec: 'refs/heads/{branch}'
226 artifacts: '{archive-artifacts}'
229 - opendaylight-infra-wrappers:
230 build-timeout: '{build-timeout}'
233 # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
234 - timed: '0,30 * * * *'
237 - shell: !include-raw-escape: opendaylight-infra-cleanup-stale-stacks.sh
240 - email-notification:
241 email-recipients: '{email-recipients}'
242 email-prefix: '[releng]'
247 name: 'builder-update-image-list'
248 project-type: freestyle
249 node: centos7-java-builder-2c-4g
252 - opendaylight-infra-properties:
253 build-days-to-keep: 7
256 - opendaylight-infra-parameters:
260 refspec: 'refs/heads/{branch}'
261 artifacts: '{archive-artifacts}'
268 - opendaylight-infra-wrappers:
269 build-timeout: '{build-timeout}'
270 # Listed after to override openstack-infra-wrappers clouds.yaml definition
271 - config-file-provider:
273 - file-id: opendaylight-private-clouds-yaml
274 target: '$HOME/.config/openstack/clouds.yaml'
277 # Update image list every Monday to Friday at 11:00 UTC
278 - timed: '0 11 * * 1-5'
281 - shell: !include-raw-escape: opendaylight-infra-update-image-list.sh
282 - opendaylight-infra-push-gerrit-patch:
284 gerrit-topic: 'releng-update-cloud-image-list'
285 gerrit-commit-message: 'Update cloud image list docs'
288 - email-notification:
289 email-recipients: '{email-recipients}'
290 email-prefix: '[releng]'
294 name: 'builder-verify-packer'
295 project-type: freestyle
296 node: centos7-java-builder-2c-4g
300 - opendaylight-infra-properties:
301 build-days-to-keep: 14
304 - opendaylight-infra-parameters:
305 os-cloud: '{os-cloud}'
308 refspec: 'refs/heads/{branch}'
309 artifacts: '{archive-artifacts}'
312 - gerrit-trigger-scm:
313 refspec: '$GERRIT_REFSPEC'
314 choosing-strategy: 'gerrit'
317 - opendaylight-infra-wrappers:
318 build-timeout: '{build-timeout}'
321 - gerrit-trigger-patch-submitted:
322 server: '{server-name}'
331 - email-notification:
332 email-recipients: '{email-recipients}'
333 email-prefix: '[{project}]'
337 name: 'builder-merge-packer-{platforms}-{templates}'
338 project-type: freestyle
339 node: centos7-java-builder-2c-4g
342 - opendaylight-infra-properties:
343 build-days-to-keep: 14
346 - opendaylight-infra-parameters:
347 os-cloud: '{os-cloud}'
350 refspec: 'refs/heads/{branch}'
351 artifacts: '{archive-artifacts}'
354 - gerrit-trigger-scm:
355 refspec: '$GERRIT_REFSPEC'
358 choosing-strategy: 'default'
361 - opendaylight-infra-wrappers:
362 build-timeout: '{build-timeout}'
365 - timed: '00 10 1 * *'
367 server-name: '{server-name}'
369 - change-merged-event
370 - comment-added-contains-event:
371 comment-contains-value: 'remerge'
373 - project-compare-type: 'ANT'
374 project-pattern: 'releng/builder'
376 - branch-compare-type: 'ANT'
377 branch-pattern: '**/{branch}'
380 pattern: 'packer/vars/{platforms}.json'
382 pattern: 'packer/templates/{templates}.json'
384 pattern: 'packer/provision/{templates}.sh'
386 pattern: 'packer/provision/system_reseal.sh'
388 pattern: 'packer/provision/rh-user_data.sh'
390 pattern: 'packer/provision/devstack-pre-pip.sh'
392 pattern: 'packer/provision/baseline.sh'
397 platform: '{platforms}'
398 template: '{templates}'
401 - email-notification:
402 email-recipients: '{email-recipients}'
403 email-prefix: '[{project}]'
407 name: 'builder-update-csit-tests'
408 node: centos7-java-builder-2c-8g
410 # builder-update-csit-tests job
412 # This job's purpose is to update csit
413 # tests to run in integration-distribution-test-{stream}
414 # by updating releng-defaults variables: csit-list-carbon,
415 # csit-list-boron, csit-list-beryllium
417 project-type: freestyle
420 - opendaylight-infra-properties:
421 build-days-to-keep: 14
424 - opendaylight-infra-parameters:
425 os-cloud: '{os-cloud}'
428 refspec: 'refs/heads/{branch}'
429 artifacts: '{archive-artifacts}'
432 - gerrit-trigger-scm:
434 choosing-strategy: 'default'
437 - opendaylight-infra-wrappers:
438 build-timeout: '{build-timeout}'
442 jobs: 'builder-jjb-merge'
446 git checkout -b auto-update-csit-jobs
447 - integration-list-jobs:
448 blacklist: '{csit-list-blacklist}'
449 search_string: "csit"
451 jobs-filename: "csit_jobs_nitrogen.lst"
452 - integration-list-jobs:
453 blacklist: '{csit-list-blacklist}'
454 search_string: "csit"
456 jobs-filename: "csit_jobs_carbon.lst"
457 - integration-list-jobs:
458 blacklist: '{csit-list-blacklist}'
459 search_string: "csit"
461 jobs-filename: "csit_jobs_boron.lst"
462 - integration-replace-block-text:
463 starting-regex: "'csit-list-nitrogen: >'"
464 ending-regex: "'csit-list-carbon: >'"
465 file-with-changes-to-insert: "'csit_jobs_nitrogen.lst'"
466 file-to-change: "'jjb/releng-defaults.yaml'"
467 - integration-replace-block-text:
468 starting-regex: "'csit-list-carbon: >'"
469 ending-regex: "'csit-list-boron: >'"
470 file-with-changes-to-insert: "'csit_jobs_carbon.lst'"
471 file-to-change: "'jjb/releng-defaults.yaml'"
472 - integration-replace-block-text:
473 starting-regex: "'csit-list-boron: >'"
474 ending-regex: "'# CSIT TESTS END SED MARKER'"
475 file-with-changes-to-insert: "'csit_jobs_boron.lst'"
476 file-to-change: "'jjb/releng-defaults.yaml'"
479 git add jjb/releng-defaults.yaml
480 - opendaylight-infra-push-gerrit-patch:
481 project: "releng/builder"
482 gerrit-topic: "auto-update-csit-jobs"
483 gerrit-commit-message: "Auto Update CSIT Jobs to run"
486 - email-notification:
487 email-recipients: '{email-recipients}'
488 email-prefix: '[releng]'