Merge "Add VLAN private network support to devstack"
[releng/builder.git] / jjb / integration / integration-test-jobs.yaml
1 - project:
2     name: integration-test
3     jobs:
4         - '{project-name}-verify-tox-{stream}'
5         - 'integration-csit-verify-1node-library'
6         - 'integration-distribution-test-{stream}'
7         - 'integration-patch-test-{stream}'
8         - 'integration-multipatch-test-{stream}'
9
10     project: integration/test
11     project-name: integration-test
12
13     stream:
14         - carbon:
15             branch: 'master'
16             jdk: 'openjdk8'
17             jre: 'openjdk8'
18             csit-list: >
19                 controller-csit-3node-clustering-only-{stream},
20                 controller-csit-3node-clustering-all-{stream},
21                 integration-distribution-deploy-{stream},
22                 integration-distribution-offline-{stream},
23                 l2switch-csit-1node-switch-only-{stream},
24                 l2switch-csit-1node-switch-all-{stream},
25                 l2switch-csit-1node-scalability-only-{stream},
26                 l2switch-csit-1node-scalability-all-{stream},
27                 lispflowmapping-csit-1node-msmr-only-{stream},
28                 lispflowmapping-csit-1node-msmr-all-{stream},
29                 nemo-csit-1node-engine-all-{stream},
30                 nemo-csit-1node-engine-only-{stream},
31                 netvirt-csit-1node-openstack-mitaka-upstream-learn-{stream},
32                 netvirt-csit-1node-openstack-mitaka-upstream-transparent-{stream},
33                 netvirt-legacy-csit-1node-openstack-basic-all-{stream},
34                 netvirt-legacy-csit-1node-openstack-basic-only-{stream},
35                 netvirt-legacy-csit-1node-openstack-mitaka-upstream-{stream},
36                 netvirt-legacy-csit-3node-clustering-only-{stream},
37                 ocpplugin-csit-1node-get-only-{stream},
38                 ocpplugin-csit-1node-get-all-{stream},
39                 ocpplugin-csit-1node-scalability-only-{stream},
40                 ocpplugin-csit-1node-scalability-all-{stream},
41                 openflowplugin-csit-1node-flow-services-only-{stream},
42                 openflowplugin-csit-1node-flow-services-all-{stream},
43                 openflowplugin-csit-1node-scalability-only-{stream},
44                 openflowplugin-csit-1node-cbench-performance-only-{stream},
45                 openflowplugin-csit-1node-config-performance-only-{stream},
46                 openflowplugin-csit-3node-clustering-only-{stream},
47                 ovsdb-csit-1node-southbound-all-{stream},
48                 ovsdb-csit-1node-southbound-only-{stream},
49                 ovsdb-csit-3node-clustering-only-{stream},
50                 packetcable-csit-1node-pcmm-only-{stream},
51                 packetcable-csit-1node-pcmm-all-{stream},
52                 sxp-csit-1node-basic-only-{stream},
53                 sxp-csit-1node-filtering-all-{stream},
54                 sxp-csit-1node-topology-only-{stream},
55                 sxp-csit-1node-topology-all-{stream},
56                 topoprocessing-csit-1node-topology-operations-all-{stream},
57                 topoprocessing-csit-1node-topology-operations-only-{stream},
58                 tsdr-csit-1node-cassandra-datastore-only-{stream},
59                 tsdr-csit-1node-hbase-datastore-all-{stream},
60                 tsdr-csit-1node-hbase-datastore-only-{stream},
61                 tsdr-csit-1node-hsqldb-datastore-all-{stream},
62                 tsdr-csit-1node-hsqldb-datastore-only-{stream},
63                 usc-csit-1node-channel-only-{stream},
64                 usc-csit-1node-channel-all-{stream},
65                 usc-csit-1node-tcp-only-{stream},
66                 usc-csit-1node-tcp-all-{stream},
67                 vtn-csit-1node-manager-only-{stream},
68                 vtn-csit-1node-manager-all-{stream},
69                 vtn-csit-1node-coordinator-only-{stream}
70
71         - boron:
72             branch: 'stable/boron'
73             jdk: 'openjdk8'
74             jre: 'openjdk8'
75             csit-list: >
76                 controller-csit-3node-clustering-only-{stream},
77                 controller-csit-3node-clustering-all-{stream},
78                 integration-distribution-deploy-{stream},
79                 integration-distribution-offline-{stream},
80                 l2switch-csit-1node-switch-only-{stream},
81                 l2switch-csit-1node-switch-all-{stream},
82                 l2switch-csit-1node-scalability-only-{stream},
83                 l2switch-csit-1node-scalability-all-{stream},
84                 lispflowmapping-csit-1node-msmr-only-{stream},
85                 lispflowmapping-csit-1node-msmr-all-{stream},
86                 nemo-csit-1node-engine-all-{stream},
87                 nemo-csit-1node-engine-only-{stream},
88                 netvirt-csit-1node-openstack-mitaka-upstream-learn-{stream},
89                 netvirt-csit-1node-openstack-mitaka-upstream-transparent-{stream},
90                 netvirt-legacy-csit-1node-openstack-basic-all-{stream},
91                 netvirt-legacy-csit-1node-openstack-basic-only-{stream},
92                 netvirt-legacy-csit-1node-openstack-mitaka-upstream-{stream},
93                 netvirt-legacy-csit-3node-clustering-only-{stream},
94                 ocpplugin-csit-1node-get-only-{stream},
95                 ocpplugin-csit-1node-get-all-{stream},
96                 ocpplugin-csit-1node-scalability-only-{stream},
97                 ocpplugin-csit-1node-scalability-all-{stream},
98                 openflowplugin-csit-1node-flow-services-only-{stream},
99                 openflowplugin-csit-1node-flow-services-all-{stream},
100                 openflowplugin-csit-1node-scalability-only-{stream},
101                 openflowplugin-csit-1node-cbench-performance-only-{stream},
102                 openflowplugin-csit-1node-config-performance-only-{stream},
103                 openflowplugin-csit-3node-clustering-only-{stream},
104                 ovsdb-csit-1node-southbound-all-{stream},
105                 ovsdb-csit-1node-southbound-only-{stream},
106                 ovsdb-csit-3node-clustering-only-{stream},
107                 packetcable-csit-1node-pcmm-only-{stream},
108                 packetcable-csit-1node-pcmm-all-{stream},
109                 sxp-csit-1node-basic-only-{stream},
110                 sxp-csit-1node-filtering-all-{stream},
111                 sxp-csit-1node-topology-only-{stream},
112                 sxp-csit-1node-topology-all-{stream},
113                 topoprocessing-csit-1node-topology-operations-all-{stream},
114                 topoprocessing-csit-1node-topology-operations-only-{stream},
115                 tsdr-csit-1node-cassandra-datastore-only-{stream},
116                 tsdr-csit-1node-hbase-datastore-only-{stream},
117                 tsdr-csit-1node-hsqldb-datastore-only-{stream},
118                 usc-csit-1node-channel-only-{stream},
119                 usc-csit-1node-channel-all-{stream},
120                 usc-csit-1node-tcp-only-{stream},
121                 usc-csit-1node-tcp-all-{stream},
122                 vtn-csit-1node-manager-only-{stream},
123                 vtn-csit-1node-manager-all-{stream},
124                 vtn-csit-1node-coordinator-only-{stream}
125
126         - beryllium:
127             branch: 'stable/beryllium'
128             jdk: 'openjdk7'
129             jre: 'openjdk7'
130             csit-list: >
131                 aaa-csit-1node-authn-only-{stream},
132                 aaa-csit-1node-authn-all-{stream},
133                 bgpcep-csit-1node-userfeatures-only-{stream},
134                 bgpcep-csit-1node-userfeatures-all-{stream},
135                 capwap-csit-1node-ac-only-{stream},
136                 capwap-csit-1node-ac-all-{stream},
137                 integration-distribution-offline-{stream},
138                 integration-distribution-deploy-{stream},
139                 l2switch-csit-1node-switch-only-{stream},
140                 l2switch-csit-1node-scalability-only-{stream},
141                 l2switch-csit-1node-scalability-all-{stream},
142                 lispflowmapping-csit-1node-msmr-only-{stream},
143                 lispflowmapping-csit-1node-msmr-all-{stream},
144                 nemo-csit-1node-engine-all-{stream},
145                 nemo-csit-1node-engine-only-{stream},
146                 nic-csit-1node-basic-all-{stream},
147                 nic-csit-1node-basic-only-{stream},
148                 openflowplugin-csit-1node-flow-services-only-{stream},
149                 openflowplugin-csit-1node-flow-services-all-{stream},
150                 openflowplugin-csit-1node-scalability-only-{stream},
151                 openflowplugin-csit-1node-cbench-performance-only-{stream},
152                 openflowplugin-csit-1node-config-performance-only-{stream},
153                 openflowplugin-csit-3node-clustering-only-{stream},
154                 ovsdb-csit-1node-southbound-all-{stream},
155                 ovsdb-csit-1node-southbound-only-{stream},
156                 packetcable-csit-1node-pcmm-only-{stream},
157                 packetcable-csit-1node-pcmm-all-{stream},
158                 snmp-csit-1node-basic-only-{stream},
159                 snmp-csit-1node-basic-all-{stream},
160                 sxp-csit-1node-basic-only-{stream},
161                 sxp-csit-1node-filtering-only-{stream},
162                 sxp-csit-1node-filtering-all-{stream},
163                 topoprocessing-csit-1node-topology-operations-all-{stream},
164                 topoprocessing-csit-1node-topology-operations-only-{stream},
165                 tsdr-csit-1node-cassandra-datastore-only-{stream},
166                 tsdr-csit-1node-hbase-datastore-only-{stream},
167                 tsdr-csit-1node-hsqldb-datastore-only-{stream},
168                 usc-csit-1node-channel-only-{stream},
169                 usc-csit-1node-channel-all-{stream},
170                 usc-csit-1node-tcp-only-{stream},
171                 usc-csit-1node-tcp-all-{stream},
172                 vtn-csit-1node-manager-only-{stream},
173                 vtn-csit-1node-manager-all-{stream},
174                 vtn-csit-1node-coordinator-only-{stream}
175
176     # tools system image
177     tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
178
179 # Template: integration-csit-verify-1node-library
180 # Goal: Verify changes in csit folder not covered by projects suite verify jobs (e.g. libraries or variables)
181 # Operation: This job template performs a base openflow test when there is a change in the libraries folder
182
183 - job-template:
184     name: 'integration-csit-verify-1node-library'
185
186     project-type: freestyle
187     node: centos7-robot-2c-2g
188
189     properties:
190         - opendaylight-infra-properties:
191             build-days-to-keep: '{build-days-to-keep}'
192
193     parameters:
194         - opendaylight-infra-parameters:
195             project: 'integration/test'
196             branch: '{branch}'
197             refspec: 'refs/heads/{branch}'
198             artifacts: '{archive-artifacts}'
199         # when upgrading to carbon you should replace odl-netconf-connector-all with odl-netconf-topology from
200         # controller-features and change USE_NETCONF_CONNECTOR to False in test-options
201         - integration-branch:
202             branch: 'stable/boron'
203         - integration-distribution-stream:
204             stream: 'boron'
205         - integration-bundleurl:
206             bundleurl: '{bundleurl}'
207         - integration-controller-scope:
208             controller-scope: 'only'
209         - integration-controller-features:
210             controller-features: >
211                 odl-clustering-test-app,
212                 odl-openflowplugin-flow-services-ui,
213                 odl-openflowplugin-app-table-miss-enforcer,
214                 odl-bgpcep-pcep,
215                 odl-bgpcep-bgp,
216                 odl-netconf-connector-all
217         - integration-test-options:
218             test-options: '-v TIMEOUT_BUG_4220:10s -v USE_NETCONF_CONNECTOR:True'
219         - integration-stream-test-plan:
220             stream-test-plan: 'test-libraries-boron.txt'
221         - integration-test-plan:
222             test-plan: 'test-libraries.txt'
223         - integration-patch-refspec:
224             branch: '$GERRIT_REFSPEC'
225         - integration-jdk-version:
226             jdkversion: 'openjdk8'
227
228     scm:
229         - integration-gerrit-scm:
230             basedir: 'test'
231             refspec: '$PATCHREFSPEC'
232             branch: 'master'
233
234     wrappers:
235         - opendaylight-infra-wrappers:
236             build-timeout: '{build-timeout}'
237
238     triggers:
239         - integration-trigger-patch-submitted:
240             server: '{server-name}'
241             project: '{project}'
242             branch: 'master'
243             files: 'csit/libraries/*'
244
245     builders:
246         - integration-infra-stack:
247             stack-template: '{stack-template}'
248             vm_0_count: '1'
249             vm_0_flavor: '{odl_system_flavor}'
250             vm_0_image: '{odl_system_image}'
251             vm_1_count: '{tools_system_count}'
252             vm_1_flavor: '{tools_system_flavor}'
253             vm_1_image: '{tools_system_image}'
254         - integration-install-robotframework
255         - inject:
256             properties-file: 'env.properties'
257         - integration-get-slave-addresses
258         - inject:
259             properties-file: 'slave_addresses.txt'
260         - integration-get-bundle-vars
261         - inject:
262             properties-file: 'bundle_vars.txt'
263         - integration-deploy-controller-run-test
264         - integration-cleanup-tmp
265
266     publishers:
267         - integration-robot:
268             unstable-if: 0.0
269             pass-if: 100.0
270         - email-notification:
271             email-recipients: '{email-recipients}'
272             email-prefix: '[integration]'
273         - integration-csit-archive-build
274         - opendaylight-infra-shiplogs:
275             maven-version: 'mvn33'
276
277 # Template: integration-distribution-test-{stream}
278 # Goal: Verify a distribution through all system test available
279 # Operation: This daily job template takes a distribution and passes all available system test
280
281 - job-template:
282     name: 'integration-distribution-test-{stream}'
283
284     project-type: freestyle
285     node: centos7-java-builder-2c-8g
286
287     properties:
288         - opendaylight-infra-properties:
289             build-days-to-keep: '{build-days-to-keep}'
290
291     parameters:
292         - integration-bundleurl:
293             bundleurl: '{bundleurl}'
294         - integration-jdk-version:
295             jdkversion: '{jre}'
296
297     triggers:
298         - timed: 'H H * * 6'
299
300     builders:
301         - trigger-builds:
302             - project: '{csit-list}'
303               block: true
304               predefined-parameters:
305                   BUNDLEURL=$BUNDLEURL
306
307     publishers:
308         - email-notification:
309             email-recipients: '{email-recipients}'
310             email-prefix: '[integration]'
311
312 # Template: integration-patch-test-{stream}
313 # Goal: Build a patch and run all available system test on a distribution containing the change
314 # Operation: This job template builds a patch, creates a distribution containing the patch, and
315 # triggers the distribution test when test-integration is used in gerrit comments
316
317 - job-template:
318     name: 'integration-patch-test-{stream}'
319
320     project-type: maven
321     node: centos7-java-builder-2c-8g
322     jdk: '{jdk}'
323
324     properties:
325         - opendaylight-infra-properties:
326             build-days-to-keep: '{build-days-to-keep}'
327
328     parameters:
329         - opendaylight-infra-parameters:
330             project: '$GERRIT_PROJECT'
331             branch: '{branch}'
332             refspec: '$GERRIT_REFSPEC'
333             artifacts: '{archive-artifacts} **/dependency_tree.txt'
334         - integration-branch:
335             branch: '{branch}'
336         - integration-distribution-git-url:
337             git-url: '{git-url}'
338
339     scm:
340         - integration-gerrit-scm:
341             basedir: '$GERRIT_PROJECT'
342             refspec: '$GERRIT_REFSPEC'
343             branch: '{branch}'
344         - integration-distribution-scm:
345             branch: '{branch}'
346
347     wrappers:
348         - opendaylight-infra-wrappers:
349             build-timeout: '720'
350
351     triggers:
352         - gerrit:
353             server-name: '{server-name}'
354             trigger-on:
355                 - comment-added-contains-event:
356                     comment-contains-value: 'test-integration'
357             projects:
358               - project-compare-type: 'ANT'
359                 project-pattern: '**'
360                 branches:
361                   - branch-compare-type: 'ANT'
362                     branch-pattern: '**/{branch}'
363             skip-vote:
364                 successful: true
365                 failed: true
366                 unstable: true
367                 notbuilt: true
368
369     prebuilders:
370         - integration-rebase-gerrit-patch
371         - integration-get-bundle-url
372         - inject:
373             properties-file: 'bundle.txt'
374         - wipe-org-opendaylight-repo
375         - provide-maven-settings:
376             global-settings-file: 'odl-global-settings'
377             settings-file: 'integration-settings'
378         - maven-target:
379             maven-version: 'mvn33'
380             pom: '$GERRIT_PROJECT/pom.xml'
381             goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
382             java-opts:
383                 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
384             settings: 'integration-settings'
385             settings-type: cfp
386             global-settings: 'odl-global-settings'
387             global-settings-type: cfp
388
389     maven:
390         maven-name: 'mvn33'
391         root-pom: 'distribution/pom.xml'
392         goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
393         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
394         settings: 'integration-settings'
395         settings-type: cfp
396         global-settings: 'odl-global-settings'
397         global-settings-type: cfp
398         ignore-upstream-changes: true
399         post-step-run-condition: 'SUCCESS'
400
401     postbuilders:
402         - trigger-builds:
403             - project: '{csit-list}'
404               block: true
405               predefined-parameters:
406                   BUNDLEURL=$BUNDLEURL
407
408     publishers:
409         - opendaylight-infra-shiplogs:
410             maven-version: 'mvn33'
411         - email-notification:
412             email-recipients: '{email-recipients}'
413             email-prefix: '[$GERRIT_PROJECT]'
414
415 # Template: integration-multipatch-test-{stream}
416 # Goal: Build one or more patches and run all available system test on a distribution containing the change
417 # Operation: This job template checks out and builds each patch provided in job parameters, creates a distribution
418 # containing these patches, and triggers the distribution test job which includes most (if not all) available
419 # CSIT jobs
420
421 - job-template:
422     name: 'integration-multipatch-test-{stream}'
423
424     project-type: maven
425     node: centos7-java-builder-8c-8g
426     jdk: '{jdk}'
427
428     properties:
429         - opendaylight-infra-properties:
430             build-days-to-keep: '{build-days-to-keep}'
431
432     parameters:
433         - patches-to-build-parameter:
434             patches_to_build: '$PATCHES_TO_BUILD'
435         - integration-branch:
436             branch: '{branch}'
437         - opendaylight-infra-parameters:
438             project: 'integration/distribution'
439             branch: '{branch}'
440             refspec: 'refs/heads/{branch}'
441             artifacts: '{archive-artifacts} **/dependency_tree.txt'
442
443     prebuilders:
444         - wipe-org-opendaylight-repo
445         - integration-multipatch-builder
446         - inject:
447             properties-file: 'bundle.txt'
448         - provide-maven-settings:
449             global-settings-file: 'odl-global-settings'
450             settings-file: 'yangtools-settings'
451
452     wrappers:
453         - opendaylight-infra-wrappers:
454             build-timeout: '1200'
455
456     maven:
457         maven-name: 'mvn33'
458         root-pom: 'patch_tester/pom.xml'
459         # TODO: Make Maven options configurable. Currently tests are not skipped, everything else is.
460         goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -f patch_tester/pom.xml -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
461         maven-opts: '-Xmx7168m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
462         settings: 'yangtools-settings'
463         settings-type: cfp
464         global-settings: 'odl-global-settings'
465         global-settings-type: cfp
466         post-step-run-condition: 'SUCCESS'
467
468     postbuilders:
469         - trigger-builds:
470             - project: '{csit-list}'
471               block: true
472               predefined-parameters:
473                   BUNDLEURL=$BUNDLEURL
474
475     publishers:
476         - opendaylight-infra-shiplogs:
477             maven-version: 'mvn33'
478         - email-notification:
479             email-recipients: '{email-recipients}'
480             email-prefix: '[int/dist]'