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