Update SFC netvirt CSIT with fluorine and queens
[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.3
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
170     properties:
171       - lf-infra-properties:
172           build-days-to-keep: 7
173
174     parameters:
175       - lf-infra-parameters:
176           project: '{project}'
177           stream: '{stream}'
178           branch: '{branch}'
179           lftools-version: '{lftools-version}'
180       - string:
181           name: OS_CLOUD
182           default: '{os-cloud}'
183           description: Artifacts to archive to the logs server.
184       - string:
185           name: ARCHIVE_ARTIFACTS
186           default: '{archive-artifacts}'
187           description: Artifacts to archive to the logs server.
188       - string:
189           name: JENKINS_URLS
190           default: '{jenkins-urls}'
191           description: 'Space separated list of Jenkins URLs to check for active builds'
192
193     scm:
194       - git-scm:
195           branch: '{branch}'
196
197     wrappers:
198       - lf-infra-wrappers:
199           build-timeout: '{build-timeout}'
200           jenkins-ssh-credential: '{jenkins-ssh-credential}'
201       # Listed after to override openstack-infra-wrappers clouds.yaml definition
202       - config-file-provider:
203           files:
204             - file-id: clouds-yaml
205               target: '$HOME/.config/openstack/clouds.yaml'
206
207     triggers:
208       - timed: '0,30 * * * *'
209
210     builders:
211       - odl-openstack-install
212       - shell: !include-raw-escape: global-jjb/shell/lftools-install.sh
213       # Servers
214       - odl-openstack-cleanup-stale-stacks
215       - odl-openstack-cleanup-stale-nodes
216       - odl-openstack-cleanup-orphaned-nodes
217       # Images
218       - odl-openstack-check-image-protection
219       - odl-openstack-cleanup-old-images
220
221     publishers:
222       - lf-infra-publish
223
224 - job-template:
225     name: 'builder-update-image-list'
226     project-type: freestyle
227     node: centos7-builder-2c-1g
228
229     properties:
230       - opendaylight-infra-properties:
231           build-days-to-keep: 7
232
233     parameters:
234       - opendaylight-infra-parameters:
235           os-cloud: vex
236           project: '{project}'
237           branch: '{branch}'
238           refspec: 'refs/heads/{branch}'
239           artifacts: '{archive-artifacts}'
240
241     scm:
242       - git-scm:
243           branch: '{branch}'
244
245     wrappers:
246       - opendaylight-infra-wrappers:
247           build-timeout: '{build-timeout}'
248       # Listed after to override openstack-infra-wrappers clouds.yaml definition
249       - config-file-provider:
250           files:
251             - file-id: clouds-yaml
252               target: '$HOME/.config/openstack/clouds.yaml'
253
254     triggers:
255       # Update image list every Monday to Friday at 11:00 UTC
256       - timed: '0 11 * * 1-5'
257
258     builders:
259       - shell: !include-raw-escape: opendaylight-infra-update-image-list.sh
260       - opendaylight-infra-push-gerrit-patch:
261           project: '{project}'
262           gerrit-topic: 'releng-update-cloud-image-list'
263           gerrit-commit-message: 'Update cloud image list docs'
264
265     publishers:
266       - email-notification:
267           email-recipients: '{email-recipients}'
268           email-prefix: '[releng]'
269       - lf-infra-publish