Merge "Fix minor typo"
[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     # mininet image
177     mininet-image: 'ubuntu-trusty-mininet-ovs-25-2c-2g'
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     logrotate:
190         daysToKeep: '{build-days-to-keep}'
191         numToKeep: '{build-num-to-keep}'
192         artifactDaysToKeep: '{build-artifact-days-to-keep}'
193         artifactNumToKeep: '{build-artifact-num-to-keep}'
194
195     parameters:
196         - opendaylight-infra-parameters:
197             project: 'integration/test'
198             branch: '{branch}'
199             refspec: 'refs/heads/{branch}'
200             artifacts: '{archive-artifacts}'
201         # when upgrading to carbon you should replace odl-netconf-connector-all with odl-netconf-topology from
202         # controller-features and change USE_NETCONF_CONNECTOR to False in test-options
203         - integration-branch:
204             branch: 'stable/boron'
205         - integration-distribution-stream:
206             stream: 'boron'
207         - integration-bundleurl:
208             bundleurl: '{bundleurl}'
209         - integration-controller-scope:
210             controller-scope: 'only'
211         - integration-controller-features:
212             controller-features: >
213                 odl-clustering-test-app,
214                 odl-openflowplugin-flow-services-ui,
215                 odl-openflowplugin-app-table-miss-enforcer,
216                 odl-bgpcep-pcep,
217                 odl-bgpcep-bgp,
218                 odl-netconf-connector-all
219         - integration-test-options:
220             test-options: '-v TIMEOUT_BUG_4220:10s -v USE_NETCONF_CONNECTOR:True'
221         - integration-stream-test-plan:
222             stream-test-plan: 'test-libraries-boron.txt'
223         - integration-test-plan:
224             test-plan: 'test-libraries.txt'
225         - integration-patch-refspec:
226             branch: '$GERRIT_REFSPEC'
227         - integration-jdk-version:
228             jdkversion: 'openjdk8'
229
230     scm:
231         - integration-gerrit-scm:
232             basedir: 'test'
233             refspec: '$PATCHREFSPEC'
234             branch: 'master'
235
236     wrappers:
237         - opendaylight-infra-wrappers:
238             build-timeout: '{build-timeout}'
239         - integration-jclouds-controller-mininet:
240             controller-image: '{controller-image}'
241             controller-vms: 1
242             mininet-image: '{mininet-image}'
243             mininet-vms: '{mininet-vms}'
244
245     triggers:
246         - integration-trigger-patch-submitted:
247             server: '{server-name}'
248             project: '{project}'
249             branch: 'master'
250             files: 'csit/libraries/*'
251
252     builders:
253         - integration-copy-ssh-keys
254         - integration-cleanup-workspace
255         - integration-install-robotframework
256         - inject:
257             properties-file: 'env.properties'
258         - integration-get-slave-addresses
259         - inject:
260             properties-file: 'slave_addresses.txt'
261         - integration-get-bundle-vars
262         - inject:
263             properties-file: 'bundle_vars.txt'
264         - integration-deploy-controller-run-test
265         - integration-cleanup-tmp
266
267     publishers:
268         - integration-robot:
269             unstable-if: 0.0
270             pass-if: 100.0
271         - email-notification:
272             email-recipients: '{email-recipients}'
273             email-prefix: '[integration]'
274         - integration-csit-archive-build
275         - opendaylight-infra-shiplogs:
276             maven-version: 'mvn33'
277
278 # Template: integration-distribution-test-{stream}
279 # Goal: Verify a distribution through all system test available
280 # Operation: This daily job template takes a distribution and passes all available system test
281
282 - job-template:
283     name: 'integration-distribution-test-{stream}'
284
285     project-type: freestyle
286     node: centos7-java-builder-2c-8g
287
288     logrotate:
289         daysToKeep: '{build-days-to-keep}'
290         numToKeep: '{build-num-to-keep}'
291         artifactDaysToKeep: '{build-artifact-days-to-keep}'
292         artifactNumToKeep: '{build-artifact-num-to-keep}'
293
294     parameters:
295         - integration-bundleurl:
296             bundleurl: '{bundleurl}'
297         - integration-jdk-version:
298             jdkversion: '{jre}'
299
300     triggers:
301         - timed: 'H H * * 6'
302
303     builders:
304         - trigger-builds:
305             - project: '{csit-list}'
306               block: true
307               predefined-parameters:
308                   BUNDLEURL=$BUNDLEURL
309
310     publishers:
311         - email-notification:
312             email-recipients: '{email-recipients}'
313             email-prefix: '[integration]'
314
315 # Template: integration-patch-test-{stream}
316 # Goal: Build a patch and run all available system test on a distribution containing the change
317 # Operation: This job template builds a patch, creates a distribution containing the patch, and
318 # triggers the distribution test when test-integration is used in gerrit comments
319
320 - job-template:
321     name: 'integration-patch-test-{stream}'
322
323     project-type: maven
324     node: centos7-java-builder-2c-8g
325     jdk: '{jdk}'
326
327     logrotate:
328         daysToKeep: '{build-days-to-keep}'
329         numToKeep: '{build-num-to-keep}'
330         artifactDaysToKeep: '{build-artifact-days-to-keep}'
331         artifactNumToKeep: '{build-artifact-num-to-keep}'
332
333     parameters:
334         - opendaylight-infra-parameters:
335             project: '$GERRIT_PROJECT'
336             branch: '{branch}'
337             refspec: '$GERRIT_REFSPEC'
338             artifacts: '{archive-artifacts} **/dependency_tree.txt'
339         - integration-branch:
340             branch: '{branch}'
341         - integration-distribution-git-url:
342             git-url: '{git-url}'
343
344     scm:
345         - integration-gerrit-scm:
346             basedir: '$GERRIT_PROJECT'
347             refspec: '$GERRIT_REFSPEC'
348             branch: '{branch}'
349         - integration-distribution-scm:
350             branch: '{branch}'
351
352     wrappers:
353         - opendaylight-infra-wrappers:
354             build-timeout: '720'
355
356     triggers:
357         - gerrit:
358             server-name: '{server-name}'
359             trigger-on:
360                 - comment-added-contains-event:
361                     comment-contains-value: 'test-integration'
362             projects:
363               - project-compare-type: 'ANT'
364                 project-pattern: '**'
365                 branches:
366                   - branch-compare-type: 'ANT'
367                     branch-pattern: '**/{branch}'
368             skip-vote:
369                 successful: true
370                 failed: true
371                 unstable: true
372                 notbuilt: true
373
374     prebuilders:
375         - integration-rebase-gerrit-patch
376         - integration-get-bundle-url
377         - inject:
378             properties-file: 'bundle.txt'
379         - wipe-org-opendaylight-repo
380         - provide-maven-settings:
381             global-settings-file: 'odl-global-settings'
382             settings-file: 'integration-settings'
383         - maven-target:
384             maven-version: 'mvn33'
385             pom: '$GERRIT_PROJECT/pom.xml'
386             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}'
387             java-opts:
388                 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
389             settings: 'integration-settings'
390             settings-type: cfp
391             global-settings: 'odl-global-settings'
392             global-settings-type: cfp
393
394     maven:
395         maven-name: 'mvn33'
396         root-pom: 'distribution/pom.xml'
397         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'
398         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
399         settings: 'integration-settings'
400         settings-type: cfp
401         global-settings: 'odl-global-settings'
402         global-settings-type: cfp
403         ignore-upstream-changes: true
404         post-step-run-condition: 'SUCCESS'
405
406     postbuilders:
407         - trigger-builds:
408             - project: '{csit-list}'
409               block: true
410               predefined-parameters:
411                   BUNDLEURL=$BUNDLEURL
412
413     publishers:
414         - opendaylight-infra-shiplogs:
415             maven-version: 'mvn33'
416         - email-notification:
417             email-recipients: '{email-recipients}'
418             email-prefix: '[$GERRIT_PROJECT]'
419
420 # Template: integration-multipatch-test-{stream}
421 # Goal: Build one or more patches and run all available system test on a distribution containing the change
422 # Operation: This job template checks out and builds each patch provided in job parameters, creates a distribution
423 # containing these patches, and triggers the distribution test job which includes most (if not all) available
424 # CSIT jobs
425
426 - job-template:
427     name: 'integration-multipatch-test-{stream}'
428
429     project-type: maven
430     node: centos7-java-builder-8c-8g
431     jdk: '{jdk}'
432
433     logrotate:
434         daysToKeep: '{build-days-to-keep}'
435         numToKeep: '{build-num-to-keep}'
436         artifactDaysToKeep: '{build-artifact-days-to-keep}'
437         artifactNumToKeep: '{build-artifact-num-to-keep}'
438
439     parameters:
440         - patches-to-build-parameter:
441             patches_to_build: '$PATCHES_TO_BUILD'
442         - integration-branch:
443             branch: '{branch}'
444         - opendaylight-infra-parameters:
445             project: 'integration/distribution'
446             branch: '{branch}'
447             refspec: 'refs/heads/{branch}'
448             artifacts: '{archive-artifacts} **/dependency_tree.txt'
449
450     prebuilders:
451         - wipe-org-opendaylight-repo
452         - integration-multipatch-builder
453         - inject:
454             properties-file: 'bundle.txt'
455         - provide-maven-settings:
456             global-settings-file: 'odl-global-settings'
457             settings-file: 'yangtools-settings'
458
459     wrappers:
460         - opendaylight-infra-wrappers:
461             build-timeout: '1200'
462
463     maven:
464         maven-name: 'mvn33'
465         root-pom: 'patch_tester/pom.xml'
466         # TODO: Make Maven options configurable. Currently tests are not skipped, everything else is.
467         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}'
468         maven-opts: '-Xmx7168m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
469         settings: 'yangtools-settings'
470         settings-type: cfp
471         global-settings: 'odl-global-settings'
472         global-settings-type: cfp
473         post-step-run-condition: 'SUCCESS'
474
475     postbuilders:
476         - trigger-builds:
477             - project: '{csit-list}'
478               block: true
479               predefined-parameters:
480                   BUNDLEURL=$BUNDLEURL
481
482     publishers:
483         - opendaylight-infra-shiplogs:
484             maven-version: 'mvn33'
485         - email-notification:
486             email-recipients: '{email-recipients}'
487             email-prefix: '[int/dist]'