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
91 - platforms: ubuntu-16.04
98 name: builder-check-poms
99 node: centos7-java-builder-2c-4g
101 project-type: freestyle
104 - opendaylight-infra-properties:
105 build-days-to-keep: 14
108 - opendaylight-infra-parameters:
109 os-cloud: '{os-cloud}'
112 refspec: 'refs/heads/{branch}'
113 artifacts: '{archive-artifacts}'
116 - opendaylight-infra-wrappers:
117 build-timeout: '{build-timeout}'
123 - shell: !include-raw-escape: include-raw-check-poms.sh
126 - email-notification:
127 email-recipients: '{email-recipients}'
128 email-prefix: '[releng]'
133 name: 'builder-cleanup-old-images'
134 project-type: freestyle
135 node: centos7-java-builder-2c-4g
138 - opendaylight-infra-properties:
139 build-days-to-keep: 7
142 - opendaylight-infra-parameters:
143 os-cloud: '{os-cloud}'
146 refspec: 'refs/heads/{branch}'
147 artifacts: '{archive-artifacts}'
154 - opendaylight-infra-wrappers:
155 build-timeout: '{build-timeout}'
156 # Listed after to override openstack-infra-wrappers clouds.yaml definition
157 - config-file-provider:
159 - file-id: opendaylight-private-clouds-yaml
160 target: '$HOME/.config/openstack/clouds.yaml'
163 # Cleanup images on a weekly schedule
167 - shell: !include-raw-escape:
168 - global-jjb/shell/lftools-install.sh
169 - opendaylight-infra-cleanup-old-images.sh
172 - email-notification:
173 email-recipients: '{email-recipients}'
174 email-prefix: '[releng]'
179 name: 'builder-delete-stale-nodes'
180 project-type: freestyle
181 node: centos7-java-builder-2c-4g
184 - opendaylight-infra-properties:
185 build-days-to-keep: 7
188 - opendaylight-infra-parameters:
189 os-cloud: '{os-cloud}'
192 refspec: 'refs/heads/{branch}'
193 artifacts: '{archive-artifacts}'
196 - opendaylight-infra-wrappers:
197 build-timeout: '{build-timeout}'
200 # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
201 - timed: '0,30 * * * *'
204 - shell: !include-raw-escape:
205 - global-jjb/shell/lftools-install.sh
206 - opendaylight-infra-cleanup-stale-nodes.sh
209 - email-notification:
210 email-recipients: '{email-recipients}'
211 email-prefix: '[releng]'
216 name: 'builder-delete-stale-stacks'
217 project-type: freestyle
218 node: centos7-java-builder-2c-4g
221 - opendaylight-infra-properties:
222 build-days-to-keep: 7
225 - opendaylight-infra-parameters:
226 os-cloud: '{os-cloud}'
229 refspec: 'refs/heads/{branch}'
230 artifacts: '{archive-artifacts}'
233 - opendaylight-infra-wrappers:
234 build-timeout: '{build-timeout}'
237 # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
238 - timed: '0,30 * * * *'
241 - shell: !include-raw-escape: opendaylight-infra-cleanup-stale-stacks.sh
244 - email-notification:
245 email-recipients: '{email-recipients}'
246 email-prefix: '[releng]'
251 name: 'builder-update-image-list'
252 project-type: freestyle
253 node: centos7-java-builder-2c-4g
256 - opendaylight-infra-properties:
257 build-days-to-keep: 7
260 - opendaylight-infra-parameters:
264 refspec: 'refs/heads/{branch}'
265 artifacts: '{archive-artifacts}'
272 - opendaylight-infra-wrappers:
273 build-timeout: '{build-timeout}'
274 # Listed after to override openstack-infra-wrappers clouds.yaml definition
275 - config-file-provider:
277 - file-id: opendaylight-private-clouds-yaml
278 target: '$HOME/.config/openstack/clouds.yaml'
281 # Update image list every Monday to Friday at 11:00 UTC
282 - timed: '0 11 * * 1-5'
285 - shell: !include-raw-escape: opendaylight-infra-update-image-list.sh
286 - opendaylight-infra-push-gerrit-patch:
288 gerrit-topic: 'releng-update-cloud-image-list'
289 gerrit-commit-message: 'Update cloud image list docs'
292 - email-notification:
293 email-recipients: '{email-recipients}'
294 email-prefix: '[releng]'
298 name: 'builder-verify-packer'
299 project-type: freestyle
300 node: centos7-java-builder-2c-4g
304 - opendaylight-infra-properties:
305 build-days-to-keep: 14
308 - opendaylight-infra-parameters:
309 os-cloud: '{os-cloud}'
312 refspec: 'refs/heads/{branch}'
313 artifacts: '{archive-artifacts}'
316 - gerrit-trigger-scm:
317 refspec: '$GERRIT_REFSPEC'
318 choosing-strategy: 'gerrit'
321 - opendaylight-infra-wrappers:
322 build-timeout: '{build-timeout}'
325 - gerrit-trigger-patch-submitted:
326 server: '{server-name}'
335 - email-notification:
336 email-recipients: '{email-recipients}'
337 email-prefix: '[{project}]'
341 name: 'builder-merge-packer-{platforms}-{templates}'
342 project-type: freestyle
343 node: centos7-java-builder-2c-4g
346 - opendaylight-infra-properties:
347 build-days-to-keep: 14
350 - opendaylight-infra-parameters:
351 os-cloud: '{os-cloud}'
354 refspec: 'refs/heads/{branch}'
355 artifacts: '{archive-artifacts}'
358 - gerrit-trigger-scm:
359 refspec: '$GERRIT_REFSPEC'
362 choosing-strategy: 'default'
365 - opendaylight-infra-wrappers:
366 build-timeout: '{build-timeout}'
369 - timed: '00 10 1 * *'
371 server-name: '{server-name}'
373 - change-merged-event
374 - comment-added-contains-event:
375 comment-contains-value: 'remerge'
377 - project-compare-type: 'ANT'
378 project-pattern: 'releng/builder'
380 - branch-compare-type: 'ANT'
381 branch-pattern: '**/{branch}'
384 pattern: 'packer/vars/{platforms}.json'
386 pattern: 'packer/templates/{templates}.json'
388 pattern: 'packer/provision/{templates}.sh'
390 pattern: 'packer/provision/system_reseal.sh'
392 pattern: 'packer/provision/rh-user_data.sh'
394 pattern: 'packer/provision/devstack-pre-pip.sh'
396 pattern: 'packer/provision/baseline.sh'
401 platform: '{platforms}'
402 template: '{templates}'
405 - email-notification:
406 email-recipients: '{email-recipients}'
407 email-prefix: '[{project}]'
411 name: 'builder-update-csit-tests'
412 node: centos7-java-builder-2c-8g
414 # builder-update-csit-tests job
416 # This job's purpose is to update csit
417 # tests to run in integration-distribution-test-{stream}
418 # by updating releng-defaults variables: csit-list-carbon,
419 # csit-list-boron, csit-list-beryllium
421 project-type: freestyle
424 - opendaylight-infra-properties:
425 build-days-to-keep: 14
428 - opendaylight-infra-parameters:
429 os-cloud: '{os-cloud}'
432 refspec: 'refs/heads/{branch}'
433 artifacts: '{archive-artifacts}'
436 - gerrit-trigger-scm:
438 choosing-strategy: 'default'
441 - opendaylight-infra-wrappers:
442 build-timeout: '{build-timeout}'
446 jobs: 'builder-jjb-merge'
450 git checkout -b auto-update-csit-jobs
451 - integration-list-jobs:
452 blacklist: '{csit-list-blacklist}'
453 search_string: "csit"
455 jobs-filename: "csit_jobs_nitrogen.lst"
456 - integration-list-jobs:
457 blacklist: '{csit-list-blacklist}'
458 search_string: "csit"
460 jobs-filename: "csit_jobs_carbon.lst"
461 - integration-list-jobs:
462 blacklist: '{csit-list-blacklist}'
463 search_string: "csit"
465 jobs-filename: "csit_jobs_boron.lst"
466 - integration-replace-block-text:
467 starting-regex: "'csit-list-nitrogen: >'"
468 ending-regex: "'csit-list-carbon: >'"
469 file-with-changes-to-insert: "'csit_jobs_nitrogen.lst'"
470 file-to-change: "'jjb/releng-defaults.yaml'"
471 - integration-replace-block-text:
472 starting-regex: "'csit-list-carbon: >'"
473 ending-regex: "'csit-list-boron: >'"
474 file-with-changes-to-insert: "'csit_jobs_carbon.lst'"
475 file-to-change: "'jjb/releng-defaults.yaml'"
476 - integration-replace-block-text:
477 starting-regex: "'csit-list-boron: >'"
478 ending-regex: "'# CSIT TESTS END SED MARKER'"
479 file-with-changes-to-insert: "'csit_jobs_boron.lst'"
480 file-to-change: "'jjb/releng-defaults.yaml'"
483 git add jjb/releng-defaults.yaml
484 - opendaylight-infra-push-gerrit-patch:
485 project: "releng/builder"
486 gerrit-topic: "auto-update-csit-jobs"
487 gerrit-commit-message: "Auto Update CSIT Jobs to run"
490 - email-notification:
491 email-recipients: '{email-recipients}'
492 email-prefix: '[releng]'