Merge "Remove neutron carbon jobs"
[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-jjb-deploy-job
12       - gerrit-jjb-merge:
13           build-node: centos7-builder-4c-4g
14           build-timeout: 90
15       - gerrit-jjb-verify
16       - builder-check-poms
17       - builder-copy-sandbox-logs
18       - builder-openstack-cron
19       - gerrit-tox-verify
20       # Automation for docs and jobs
21       - 'builder-update-image-list'
22
23     # The following values are only specified here
24     # so that code blocks look similar to other projects.
25     project: 'releng/builder'
26     project-name: builder
27     stream: master
28     branch: master
29     build-node: centos7-builder-2c-2g
30     archive-artifacts: '**/*.log'
31     build-timeout: 30
32     jjb-version: 2.0.6
33     jenkins-urls: >
34       https://jenkins.opendaylight.org/releng
35       https://jenkins.opendaylight.org/sandbox
36
37 - project:
38     name: packer-jobs
39     # packer jobs templates are defined in global-jjb
40     jobs:
41       - '{project-name}-packer-jobs'
42     project: 'releng/builder'
43     project-name: builder
44     branch: master
45     archive-artifacts: '**/*.log'
46     build-node: centos7-builder-2c-1g
47
48     platforms:
49       - centos
50       - ubuntu-14.04
51       - ubuntu-16.04
52
53     templates:
54       - devstack
55       - devstack-pre-pip-ocata:
56           build-timeout: 75
57       - devstack-pre-pip-pike:
58           build-timeout: 75
59       - gbp
60       - mininet-ovs-2.5:
61           build-timeout: 60
62       - mininet-ovs-2.6:
63           build-timeout: 75
64
65     exclude:
66       - platforms: centos
67         templates: gbp
68       - platforms: centos
69         templates: mininet-ovs-2.5
70       - platforms: centos
71         templates: mininet-ovs-2.6
72       - platforms: ubuntu-14.04
73         templates: devstack-pre-pip-ocata
74       - platforms: ubuntu-14.04
75         templates: devstack-pre-pip-pike
76       - platforms: ubuntu-14.04
77         templates: devstack
78       - platforms: ubuntu-14.04
79         templates: mininet-ovs-2.5
80       - platforms: ubuntu-14.04
81         templates: mininet-ovs-2.6
82       - platforms: ubuntu-16.04
83         templates: devstack-pre-pip-ocata
84       - platforms: ubuntu-16.04
85         templates: devstack-pre-pip-pike
86       - platforms: ubuntu-16.04
87         templates: devstack
88
89 - job-template:
90     name: builder-check-poms
91     node: centos7-builder-2c-1g
92
93     project-type: freestyle
94
95     properties:
96       - opendaylight-infra-properties:
97           build-days-to-keep: 14
98
99     parameters:
100       - opendaylight-infra-parameters:
101           os-cloud: '{os-cloud}'
102           project: '{project}'
103           branch: '{branch}'
104           refspec: 'refs/heads/{branch}'
105           artifacts: '{archive-artifacts}'
106
107     wrappers:
108       - opendaylight-infra-wrappers:
109           build-timeout: '{build-timeout}'
110
111     triggers:
112       - timed: 'H H * * 1'
113
114     builders:
115       - shell: !include-raw-escape: check-poms.sh
116
117     publishers:
118       - email-notification:
119           email-recipients: '{email-recipients}'
120           email-prefix: '[releng]'
121       - lf-infra-publish
122
123 - job-template:
124     name: builder-copy-sandbox-logs
125     node: centos7-builder-2c-1g
126
127     project-type: freestyle
128
129     properties:
130       - opendaylight-infra-properties:
131           build-days-to-keep: 1
132
133     parameters:
134       - opendaylight-infra-parameters:
135           os-cloud: ''
136           project: ''
137           branch: ''
138           refspec: ''
139           artifacts: ''
140
141     wrappers:
142       - opendaylight-infra-wrappers:
143           build-timeout: 10
144
145     triggers:
146       - gerrit:
147           server-name: '{gerrit-server-name}'
148           trigger-on:
149             - comment-added-contains-event:
150                 comment-contains-value: 'copy-logs:'
151           projects:
152             - project-compare-type: ANT
153               project-pattern: '**'
154               branches:
155                 - branch-compare-type: ANT
156                   branch-pattern: '**'
157
158     builders:
159       - shell: !include-raw-escape: copy-sandbox-logs.sh
160
161     publishers:
162       - lf-infra-publish
163
164
165 - job-template:
166     name: builder-openstack-cron
167     project-type: freestyle
168     node: '{build-node}'
169     concurrent: true
170
171     properties:
172       - lf-infra-properties:
173           build-days-to-keep: 7
174
175     parameters:
176       - lf-infra-parameters:
177           project: '{project}'
178           stream: '{stream}'
179           branch: '{branch}'
180           lftools-version: '{lftools-version}'
181       - string:
182           name: OS_CLOUD
183           default: '{os-cloud}'
184           description: Artifacts to archive to the logs server.
185       - string:
186           name: ARCHIVE_ARTIFACTS
187           default: '{archive-artifacts}'
188           description: Artifacts to archive to the logs server.
189       - string:
190           name: JENKINS_URLS
191           default: '{jenkins-urls}'
192           description: 'Space separated list of Jenkins URLs to check for active builds'
193
194     scm:
195       - git-scm:
196           branch: '{branch}'
197
198     wrappers:
199       - lf-infra-wrappers:
200           build-timeout: '{build-timeout}'
201           jenkins-ssh-credential: '{jenkins-ssh-credential}'
202       # Listed after to override openstack-infra-wrappers clouds.yaml definition
203       - config-file-provider:
204           files:
205             - file-id: clouds-yaml
206               target: '$HOME/.config/openstack/clouds.yaml'
207             - file-id: npmrc
208               target: '$HOME/.npmrc'
209             - file-id: pipconf
210               target: '$HOME/.config/pip/pip.conf'
211
212     triggers:
213       - timed: '0,30 * * * *'
214
215     builders:
216       - odl-openstack-install
217       # Servers
218       - odl-openstack-cleanup-stale-stacks
219       - odl-openstack-cleanup-stale-nodes
220       - odl-openstack-cleanup-orphaned-nodes
221       # Volumes
222       - odl-openstack-cleanup-stale-volumes
223       # Images
224       - odl-openstack-check-image-protection
225       - odl-openstack-cleanup-old-images
226
227     publishers:
228       - lf-infra-publish
229
230 - job-template:
231     name: 'builder-update-image-list'
232     project-type: freestyle
233     node: centos7-builder-2c-1g
234
235     properties:
236       - opendaylight-infra-properties:
237           build-days-to-keep: 7
238
239     parameters:
240       - opendaylight-infra-parameters:
241           os-cloud: vex
242           project: '{project}'
243           branch: '{branch}'
244           refspec: 'refs/heads/{branch}'
245           artifacts: '{archive-artifacts}'
246
247     scm:
248       - git-scm:
249           branch: '{branch}'
250
251     wrappers:
252       - opendaylight-infra-wrappers:
253           build-timeout: '{build-timeout}'
254       # Listed after to override openstack-infra-wrappers clouds.yaml definition
255       - config-file-provider:
256           files:
257             - file-id: clouds-yaml
258               target: '$HOME/.config/openstack/clouds.yaml'
259
260     triggers:
261       # Update image list every Monday to Friday at 11:00 UTC
262       - timed: '0 11 * * 1-5'
263
264     builders:
265       - shell: !include-raw-escape: opendaylight-infra-update-image-list.sh
266       - opendaylight-infra-push-gerrit-patch:
267           project: '{project}'
268           gerrit-topic: 'releng-update-cloud-image-list'
269           gerrit-commit-message: 'Update cloud image list docs'
270
271     publishers:
272       - email-notification:
273           email-recipients: '{email-recipients}'
274           email-prefix: '[releng]'
275       - lf-infra-publish