6 - '{project-name}-verify-tox-{stream}'
10 - 'builder-verify-packer'
11 - 'builder-merge-packer-{platforms}-{templates}'
13 - 'builder-cleanup-old-images'
14 - 'builder-delete-stale-stacks'
15 # Automation for docs and jobs
16 - 'builder-update-csit-tests'
17 - 'builder-update-image-list'
26 - devstack-pre-pip-mitaka
27 - devstack-pre-pip-newton
41 templates: mininet-ovs-2.5
42 - platforms: ubuntu-14.04
43 templates: java-builder
44 - platforms: ubuntu-14.04
46 - platforms: ubuntu-14.04
47 templates: devstack-pre-pip-mitaka
48 - platforms: ubuntu-14.04
49 templates: devstack-pre-pip-newton
50 - platforms: ubuntu-14.04
52 - platforms: ubuntu-14.04
54 - platforms: ubuntu-14.04
55 templates: mininet-ovs-2.5
56 - platforms: ubuntu-16.04
57 templates: java-builder
58 - platforms: ubuntu-16.04
60 - platforms: ubuntu-16.04
61 templates: devstack-pre-pip-mitaka
62 - platforms: ubuntu-16.04
63 templates: devstack-pre-pip-newton
64 - platforms: ubuntu-16.04
66 - platforms: ubuntu-16.04
68 - platforms: ubuntu-16.04
70 - platforms: ubuntu-16.04
74 project-type: freestyle
75 archive-artifacts: '**/*.log'
78 # The following values are only specified here
79 # so that code blocks look similar to other projects.
80 project: 'releng/builder'
86 name: builder-verify-jjb
87 node: centos7-java-builder-2c-4g
90 project-type: freestyle
93 - opendaylight-infra-properties:
94 build-days-to-keep: 14
97 - opendaylight-infra-parameters:
98 os-cloud: '{os-cloud}'
101 refspec: 'refs/heads/{branch}'
102 artifacts: '{archive-artifacts}'
105 - gerrit-trigger-scm:
106 refspec: '$GERRIT_REFSPEC'
107 choosing-strategy: 'gerrit'
110 - opendaylight-infra-wrappers:
111 build-timeout: '{build-timeout}'
114 - gerrit-trigger-patch-submitted:
115 server: '{server-name}'
121 - opendaylight-infra-jjbini
123 virtualenv $WORKSPACE/venv
124 source $WORKSPACE/venv/bin/activate
125 pip install --upgrade pip
126 pip install jenkins-job-builder
128 jenkins-jobs -l DEBUG test --recursive -o archives/job_output jjb/
129 gzip archives/job_output/*
130 - releng-check-unicode
131 - verify-gpg-signature
134 - email-notification:
135 email-recipients: '{email-recipients}'
136 email-prefix: '[releng]'
137 - opendaylight-infra-shiplogs:
138 maven-version: 'mvn33'
141 name: 'builder-merge'
142 node: centos7-java-builder-2c-4g
144 # builder-merge job to run JJB update
146 # This job's purpose is to update all the JJB
148 project-type: freestyle
151 - opendaylight-infra-properties:
152 build-days-to-keep: 14
155 - opendaylight-infra-parameters:
156 os-cloud: '{os-cloud}'
159 refspec: 'refs/heads/{branch}'
160 artifacts: '{archive-artifacts}'
163 - gerrit-trigger-scm:
165 choosing-strategy: 'default'
168 - opendaylight-infra-wrappers:
169 build-timeout: '{build-timeout}'
173 server-name: '{server-name}'
175 - change-merged-event
176 - comment-added-contains-event:
177 comment-contains-value: 'remerge'
179 - project-compare-type: 'ANT'
180 project-pattern: 'releng/builder'
182 - branch-compare-type: 'ANT'
183 branch-pattern: '**/{branch}'
189 - opendaylight-infra-jjbini
191 virtualenv $WORKSPACE/venv
192 source $WORKSPACE/venv/bin/activate
193 pip install --upgrade pip
194 pip install jenkins-job-builder
196 jenkins-jobs --version
197 jenkins-jobs update --recursive --delete-old --workers 4 jjb/
200 - email-notification:
201 email-recipients: '{email-recipients}'
202 email-prefix: '[releng]'
203 - opendaylight-infra-shiplogs:
204 maven-version: 'mvn33'
207 name: 'builder-weekly'
209 node: centos7-java-builder-2c-4g
211 # builder-weekly job to run JJB update weekly
213 # This job's purpose is to update all the JJB on a weekly (Sunday)
214 # basis with --flush-cache enabled to ensure jobs are okay
216 project-type: freestyle
219 - opendaylight-infra-properties:
220 build-days-to-keep: 14
223 - opendaylight-infra-parameters:
224 os-cloud: '{os-cloud}'
227 refspec: 'refs/heads/{branch}'
228 artifacts: '{archive-artifacts}'
235 - opendaylight-infra-wrappers:
236 build-timeout: '{build-timeout}'
242 - opendaylight-infra-jjbini
244 virtualenv $WORKSPACE/venv
245 source $WORKSPACE/venv/bin/activate
246 pip install --upgrade pip
247 pip install jenkins-job-builder
249 jenkins-jobs --flush-cache update --recursive --workers 4 jjb/
252 - email-notification:
253 email-recipients: '{email-recipients}'
254 email-prefix: '[releng]'
255 - opendaylight-infra-shiplogs:
256 maven-version: 'mvn33'
259 name: builder-check-poms
260 node: centos7-java-builder-2c-4g
262 project-type: freestyle
265 - opendaylight-infra-properties:
266 build-days-to-keep: 14
269 - opendaylight-infra-parameters:
270 os-cloud: '{os-cloud}'
273 refspec: 'refs/heads/{branch}'
274 artifacts: '{archive-artifacts}'
277 - opendaylight-infra-wrappers:
278 build-timeout: '{build-timeout}'
284 - shell: !include-raw-escape: include-raw-check-poms.sh
287 - email-notification:
288 email-recipients: '{email-recipients}'
289 email-prefix: '[releng]'
290 - opendaylight-infra-shiplogs:
291 maven-version: 'mvn33'
294 name: 'builder-delete-stale-stacks'
295 project-type: freestyle
296 node: centos7-java-builder-2c-4g
299 - opendaylight-infra-properties:
300 build-days-to-keep: 7
303 - opendaylight-infra-wrappers:
304 build-timeout: '{build-timeout}'
307 # Attempt to clear up stacks every 30 mins in case we have orphaned stacks
308 - timed: '0,30 * * * *'
311 - shell: !include-raw-escape: opendaylight-infra-cleanup-stale-stacks.sh
314 - email-notification:
315 email-recipients: '{email-recipients}'
316 email-prefix: '[releng]'
317 - opendaylight-infra-shiplogs:
318 maven-version: 'mvn33'
321 name: 'builder-cleanup-old-images'
322 project-type: freestyle
323 node: centos7-java-builder-2c-4g
326 - opendaylight-infra-properties:
327 build-days-to-keep: 7
330 - opendaylight-infra-parameters:
331 os-cloud: '{os-cloud}'
334 refspec: 'refs/heads/{branch}'
335 artifacts: '{archive-artifacts}'
342 - opendaylight-infra-wrappers:
343 build-timeout: '{build-timeout}'
344 # Listed after to override openstack-infra-wrappers clouds.yaml definition
345 - config-file-provider:
347 - file-id: opendaylight-private-clouds-yaml
348 target: '$HOME/.config/openstack/clouds.yaml'
351 # Cleanup images on a weekly schedule
355 - shell: !include-raw-escape: opendaylight-infra-cleanup-old-images.sh
358 - email-notification:
359 email-recipients: '{email-recipients}'
360 email-prefix: '[releng]'
361 - opendaylight-infra-shiplogs:
362 maven-version: 'mvn33'
365 name: 'builder-update-image-list'
366 project-type: freestyle
367 node: centos7-java-builder-2c-4g
370 - opendaylight-infra-properties:
371 build-days-to-keep: 7
374 - opendaylight-infra-parameters:
378 refspec: 'refs/heads/{branch}'
379 artifacts: '{archive-artifacts}'
386 - opendaylight-infra-wrappers:
387 build-timeout: '{build-timeout}'
388 # Listed after to override openstack-infra-wrappers clouds.yaml definition
389 - config-file-provider:
391 - file-id: opendaylight-private-clouds-yaml
392 target: '$HOME/.config/openstack/clouds.yaml'
395 # Update image list every Monday to Friday at 11:00 UTC
396 - timed: '0 11 * * 1-5'
399 - shell: !include-raw-escape: opendaylight-infra-update-image-list.sh
400 - opendaylight-infra-push-gerrit-patch:
402 gerrit-topic: 'releng-update-cloud-image-list'
403 gerrit-commit-message: 'Update cloud image list docs'
406 - email-notification:
407 email-recipients: '{email-recipients}'
408 email-prefix: '[releng]'
409 - opendaylight-infra-shiplogs:
410 maven-version: 'mvn33'
413 name: 'builder-verify-packer'
414 project-type: freestyle
415 node: centos7-java-builder-2c-4g
419 - opendaylight-infra-properties:
420 build-days-to-keep: 14
423 - opendaylight-infra-parameters:
424 os-cloud: '{os-cloud}'
427 refspec: 'refs/heads/{branch}'
428 artifacts: '{archive-artifacts}'
431 - gerrit-trigger-scm:
432 refspec: '$GERRIT_REFSPEC'
433 choosing-strategy: 'gerrit'
436 - opendaylight-infra-wrappers:
437 build-timeout: '{build-timeout}'
440 - gerrit-trigger-patch-submitted:
441 server: '{server-name}'
450 - email-notification:
451 email-recipients: '{email-recipients}'
452 email-prefix: '[{project}]'
453 - opendaylight-infra-shiplogs:
454 maven-version: 'mvn33'
457 name: 'builder-merge-packer-{platforms}-{templates}'
458 project-type: freestyle
459 node: centos7-java-builder-2c-4g
462 - opendaylight-infra-properties:
463 build-days-to-keep: 14
466 - opendaylight-infra-parameters:
467 os-cloud: '{os-cloud}'
470 refspec: 'refs/heads/{branch}'
471 artifacts: '{archive-artifacts}'
474 - gerrit-trigger-scm:
475 refspec: '$GERRIT_REFSPEC'
478 choosing-strategy: 'default'
481 - opendaylight-infra-wrappers:
482 build-timeout: '{build-timeout}'
485 - timed: '00 10 1 * *'
487 server-name: '{server-name}'
489 - change-merged-event
490 - comment-added-contains-event:
491 comment-contains-value: 'remerge'
493 - project-compare-type: 'ANT'
494 project-pattern: 'releng/builder'
496 - branch-compare-type: 'ANT'
497 branch-pattern: '**/{branch}'
500 pattern: 'packer/vars/{platforms}.json'
502 pattern: 'packer/templates/{templates}.json'
504 pattern: 'packer/provision/{templates}.sh'
506 pattern: 'packer/provision/system_reseal.sh'
508 pattern: 'packer/provision/rh-user_data.sh'
510 pattern: 'packer/provision/devstack-pre-pip.sh'
512 pattern: 'packer/provision/baseline.sh'
517 platform: '{platforms}'
518 template: '{templates}'
521 - email-notification:
522 email-recipients: '{email-recipients}'
523 email-prefix: '[{project}]'
524 - opendaylight-infra-shiplogs:
525 maven-version: 'mvn33'
528 name: 'builder-update-csit-tests'
529 node: centos7-java-builder-2c-8g
531 # builder-update-csit-tests job
533 # This job's purpose is to update csit
534 # tests to run in integration-distribution-test-{stream}
535 # by updating releng-defaults variables: csit-list-carbon,
536 # csit-list-boron, csit-list-beryllium
538 project-type: freestyle
541 - opendaylight-infra-properties:
542 build-days-to-keep: 14
545 - opendaylight-infra-parameters:
546 os-cloud: '{os-cloud}'
549 refspec: 'refs/heads/{branch}'
550 artifacts: '{archive-artifacts}'
553 - gerrit-trigger-scm:
555 choosing-strategy: 'default'
558 - opendaylight-infra-wrappers:
559 build-timeout: '{build-timeout}'
563 jobs: 'builder-merge'
567 git checkout -b auto-update-csit-jobs
568 - integration-list-jobs:
569 blacklist: '{csit-list-blacklist}'
570 search_string: "csit"
572 jobs-filename: "csit_jobs_carbon.lst"
573 - integration-list-jobs:
574 blacklist: '{csit-list-blacklist}'
575 search_string: "csit"
577 jobs-filename: "csit_jobs_boron.lst"
578 - integration-list-jobs:
579 blacklist: '{csit-list-blacklist}'
580 search_string: "csit"
582 jobs-filename: "csit_jobs_beryllium.lst"
583 - integration-replace-block-text:
584 starting-regex: "'csit-list-carbon: >'"
585 ending-regex: "'csit-list-boron: >'"
586 file-with-changes-to-insert: "'csit_jobs_carbon.lst'"
587 file-to-change: "'jjb/releng-defaults.yaml'"
588 - integration-replace-block-text:
589 starting-regex: "'csit-list-boron: >'"
590 ending-regex: "'csit-list-beryllium: >'"
591 file-with-changes-to-insert: "'csit_jobs_boron.lst'"
592 file-to-change: "'jjb/releng-defaults.yaml'"
593 - integration-replace-block-text:
594 starting-regex: "'csit-list-beryllium: >'"
595 ending-regex: "'# CSIT TESTS END SED MARKER'"
596 file-with-changes-to-insert: "'csit_jobs_beryllium.lst'"
597 file-to-change: "'jjb/releng-defaults.yaml'"
600 git add jjb/releng-defaults.yaml
601 - opendaylight-infra-push-gerrit-patch:
602 project: "releng/builder"
603 gerrit-topic: "auto-update-csit-jobs"
604 gerrit-commit-message: "Auto Update CSIT Jobs to run"
607 - email-notification:
608 email-recipients: '{email-recipients}'
609 email-prefix: '[releng]'
610 - opendaylight-infra-shiplogs:
611 maven-version: 'mvn33'