Fix cloud-images.rst generation script
[releng/builder.git] / jjb / releng-jobs.yaml
1 ---
2 - project:
3     name: builder-jobs
4     jobs:
5       - '{project-name}-rtd-jobs':
6           project-pattern: releng/builder
7           rtd-build-url: https://readthedocs.org/api/v2/webhook/opendaylight-releng-builder/32926/
8           rtd-token: e9fa62bd60a39c22de631791309ccacc37a9929e
9       - gerrit-jenkins-cfg-merge:
10           jenkins-silos: releng sandbox
11       - gerrit-jenkins-cfg-verify:
12           jenkins-silos: releng sandbox
13       - gerrit-jenkins-sandbox-cleanup
14       - gerrit-jjb-deploy-job
15       - gerrit-jjb-merge:
16           build-node: centos7-builder-4c-4g
17           build-timeout: 90
18       - gerrit-jjb-verify:
19           build-timeout: 90
20       - builder-check-poms
21       - builder-copy-sandbox-logs
22       - gerrit-tox-verify
23       # Automation for docs and jobs
24       - "builder-update-image-list":
25           archive-artifacts: docs/cloud-images.rst
26       - gerrit-info-yaml-verify
27
28     # The following values are only specified here
29     # so that code blocks look similar to other projects.
30     project: 'releng/builder'
31     project-name: builder
32     stream: master
33     branch: master
34     build-node: centos7-builder-2c-2g
35     archive-artifacts: '**/*.log'
36     build-timeout: 30
37     jjb-version: 3.5.0
38
39 - project:
40     name: builder-openstack
41     jobs:
42       - gerrit-openstack-cron
43
44     project: 'releng/builder'
45     project-name: builder
46     build-node: centos7-builder-2c-2g
47
48     jenkins-urls: >
49         https://jenkins.opendaylight.org/releng
50         https://jenkins.opendaylight.org/sandbox
51     openstack-cloud: vex
52
53 - job-template:
54     name: builder-check-poms
55     node: centos7-builder-2c-1g
56
57     project-type: freestyle
58
59     properties:
60       - opendaylight-infra-properties:
61           build-days-to-keep: 14
62
63     parameters:
64       - opendaylight-infra-parameters:
65           os-cloud: '{os-cloud}'
66           project: '{project}'
67           branch: '{branch}'
68           refspec: 'refs/heads/{branch}'
69           artifacts: '{archive-artifacts}'
70
71     wrappers:
72       - opendaylight-infra-wrappers:
73           build-timeout: '{build-timeout}'
74
75     triggers:
76       - timed: 'H H * * 1'
77
78     builders:
79       - shell: !include-raw-escape: check-poms.sh
80
81     publishers:
82       - email-notification:
83           email-recipients: '{email-recipients}'
84           email-prefix: '[releng]'
85       - lf-infra-publish
86
87 - job-template:
88     name: builder-copy-sandbox-logs
89     node: centos7-builder-2c-1g
90
91     project-type: freestyle
92
93     properties:
94       - opendaylight-infra-properties:
95           build-days-to-keep: 1
96
97     parameters:
98       - opendaylight-infra-parameters:
99           os-cloud: ''
100           project: ''
101           branch: ''
102           refspec: ''
103           artifacts: ''
104
105     wrappers:
106       - opendaylight-infra-wrappers:
107           build-timeout: 10
108
109     triggers:
110       - gerrit:
111           server-name: '{gerrit-server-name}'
112           trigger-on:
113             - comment-added-contains-event:
114                 comment-contains-value: 'copy-logs:'
115           projects:
116             - project-compare-type: ANT
117               project-pattern: '**'
118               branches:
119                 - branch-compare-type: ANT
120                   branch-pattern: '**'
121
122     builders:
123       - shell: !include-raw-escape: copy-sandbox-logs.sh
124
125     publishers:
126       - lf-infra-publish
127
128
129 - job-template:
130     name: 'builder-update-image-list'
131     project-type: freestyle
132     node: centos7-builder-2c-1g
133
134     properties:
135       - opendaylight-infra-properties:
136           build-days-to-keep: 7
137
138     parameters:
139       - opendaylight-infra-parameters:
140           os-cloud: vex
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       # Update image list every Monday to Friday at 11:00 UTC
161       - timed: '0 11 * * 1-5'
162
163     builders:
164       - lf-infra-pre-build
165       - shell: !include-raw-escape: opendaylight-infra-update-image-list.sh
166       - lf-infra-push-gerrit-patch:
167           project: '{project}'
168           gerrit-user: 'jenkins-$SILO'
169           gerrit-host: 'git.opendaylight.org'
170           gerrit-topic: 'releng-update-cloud-image-list'
171           gerrit-commit-message: 'Update cloud image list docs'
172           reviewers-email: 'jluhrsen@gmail.com'
173
174     publishers:
175       - email-notification:
176           email-recipients: '{email-recipients}'
177           email-prefix: '[releng]'
178       - lf-infra-publish