Merge "Add OVS 2.4.0 to ovsdb full integration"
[releng/builder.git] / jjb / integration / integration-test-jobs.yaml
1
2 - project:
3     name: integration-test-jobs
4     jobs:
5         - 'integration-verify-python'
6         - 'integration-csit-verify-1node-library'
7         - 'integration-distribution-test-{stream}'
8         - 'integration-patch-test-{stream}'
9         - 'integration-multipatch-test-{stream}'
10
11     stream:
12         - beryllium:
13             branch: 'master'
14             csit-list: >
15                 aaa-csit-1node-authn-only-{stream},
16                 aaa-csit-1node-authn-all-{stream},
17                 bgpcep-csit-1node-userfeatures-only-{stream},
18                 bgpcep-csit-1node-userfeatures-all-{stream},
19                 capwap-csit-1node-ac-only-{stream},
20                 capwap-csit-1node-ac-all-{stream},
21                 controller-csit-3node-clustering-only-{stream},
22                 controller-csit-3node-clustering-all-{stream},
23                 integration-csit-3node-basic-only-{stream},
24                 integration-csit-3node-basic-all-{stream},
25                 integration-distribution-offline-{stream},
26                 l2switch-csit-1node-switch-only-{stream},
27                 l2switch-csit-1node-switch-all-{stream},
28                 l2switch-csit-1node-scalability-only-{stream},
29                 l2switch-csit-1node-scalability-all-{stream},
30                 lispflowmapping-csit-1node-all-only-{stream},
31                 lispflowmapping-csit-1node-all-all-{stream},
32                 nic-csit-1node-basic-all-{stream},
33                 nic-csit-1node-basic-only-{stream},
34                 openflowplugin-csit-1node-flow-services-only-{stream},
35                 openflowplugin-csit-1node-flow-services-lithium-redesign-only-{stream},
36                 openflowplugin-csit-1node-flow-services-all-{stream},
37                 openflowplugin-csit-1node-scalability-only-{stream},
38                 openflowplugin-csit-1node-scalability-lithium-redesign-only-{stream},
39                 openflowplugin-csit-1node-scalability-all-{stream},
40                 openflowplugin-csit-1node-cbench-performance-only-{stream},
41                 openflowplugin-csit-1node-cbench-performance-lithium-redesign-only-{stream},
42                 openflowplugin-csit-1node-config-performance-only-{stream},
43                 openflowplugin-csit-1node-config-performance-lithium-redesign-only-{stream},
44                 ovsdb-csit-1node-netvirt-only-{stream},
45                 ovsdb-csit-1node-netvirt-all-{stream},
46                 ovsdb-csit-1node-southbound-only-{stream},
47                 ovsdb-csit-1node-southbound-all-{stream},
48                 snmp-csit-1node-basic-only-{stream},
49                 snmp-csit-1node-basic-all-{stream},
50                 topoprocessing-csit-1node-topology-operations-all-{stream},
51                 topoprocessing-csit-1node-topology-operations-only-{stream},
52                 tsdr-csit-1node-h2-datastore-only-{stream},
53                 tsdr-csit-1node-h2-datastore-all-{stream},
54                 tsdr-csit-1node-hbase-datastore-only-{stream},
55                 tsdr-csit-1node-hbase-datastore-all-{stream},
56                 usc-csit-1node-channel-only-{stream},
57                 usc-csit-1node-channel-all-{stream},
58                 vpnservice-csit-1node-vpnservice-only-{stream},
59                 vpnservice-csit-1node-vpnservice-all-{stream},
60                 vtn-csit-1node-manager-only-{stream},
61                 vtn-csit-1node-manager-all-{stream}
62
63         - stable-lithium:
64             branch: 'stable/lithium'
65             csit-list: >
66                 aaa-csit-1node-authn-only-{stream},
67                 aaa-csit-1node-authn-all-{stream},
68                 bgpcep-csit-1node-userfeatures-only-{stream},
69                 bgpcep-csit-1node-userfeatures-all-{stream},
70                 capwap-csit-1node-ac-only-{stream},
71                 capwap-csit-1node-ac-all-{stream},
72                 controller-csit-3node-clustering-only-{stream},
73                 controller-csit-3node-clustering-all-{stream},
74                 integration-csit-3node-basic-only-{stream},
75                 integration-csit-3node-basic-all-{stream},
76                 integration-distribution-offline-{stream},
77                 l2switch-csit-1node-switch-only-{stream},
78                 l2switch-csit-1node-switch-all-{stream},
79                 l2switch-csit-1node-scalability-only-{stream},
80                 l2switch-csit-1node-scalability-all-{stream},
81                 lispflowmapping-csit-1node-all-only-{stream},
82                 lispflowmapping-csit-1node-all-all-{stream},
83                 nic-csit-1node-basic-all-{stream},
84                 nic-csit-1node-basic-only-{stream},
85                 openflowplugin-csit-1node-flow-services-only-{stream},
86                 openflowplugin-csit-1node-flow-services-lithium-redesign-only-{stream},
87                 openflowplugin-csit-1node-flow-services-all-{stream},
88                 openflowplugin-csit-1node-scalability-only-{stream},
89                 openflowplugin-csit-1node-scalability-lithium-redesign-only-{stream},
90                 openflowplugin-csit-1node-scalability-all-{stream},
91                 openflowplugin-csit-1node-cbench-performance-only-{stream},
92                 openflowplugin-csit-1node-cbench-performance-lithium-redesign-only-{stream},
93                 openflowplugin-csit-1node-config-performance-only-{stream},
94                 openflowplugin-csit-1node-config-performance-lithium-redesign-only-{stream},
95                 ovsdb-csit-1node-netvirt-only-{stream},
96                 ovsdb-csit-1node-netvirt-all-{stream},
97                 ovsdb-csit-1node-southbound-only-{stream},
98                 ovsdb-csit-1node-southbound-all-{stream},
99                 snmp-csit-1node-basic-only-{stream},
100                 snmp-csit-1node-basic-all-{stream},
101                 usc-csit-1node-channel-only-{stream},
102                 usc-csit-1node-channel-all-{stream},
103                 vpnservice-csit-1node-vpnservice-only-{stream},
104                 vpnservice-csit-1node-vpnservice-all-{stream},
105                 vtn-csit-1node-manager-only-{stream},
106                 vtn-csit-1node-manager-all-{stream}
107
108         - stable-helium:
109             branch: 'stable/helium'
110             csit-list: >
111                 aaa-csit-1node-imds-authn-only-{stream},
112                 aaa-csit-1node-imds-authn-all-{stream},
113                 controller-csit-1node-imds-nsf-only-{stream},
114                 controller-csit-1node-imds-nsf-all-{stream},
115                 integration-csit-3node-basic-only-{stream},
116                 integration-csit-3node-basic-all-{stream},
117                 l2switch-csit-1node-imds-switch-only-{stream},
118                 l2switch-csit-1node-imds-switch-all-{stream},
119                 lispflowmapping-csit-1node-imds-all-only-{stream},
120                 lispflowmapping-csit-1node-imds-all-all-{stream},
121                 openflowplugin-csit-1node-imds-flow-services-only-{stream},
122                 openflowplugin-csit-1node-imds-flow-services-all-{stream},
123                 vtn-csit-1node-imds-manager-only-{stream},
124                 vtn-csit-1node-imds-manager-all-{stream}
125
126     jdk: 'openjdk7'
127
128 # Template: integration-verify-python
129 # Goal: Verify python scripts correct syntax
130 # Operation: This job template performs a python tox check on any integration/test patch
131
132 - job-template:
133     name: 'integration-verify-python'
134
135     project-type: freestyle
136     node: dynamic_verify
137     concurrent: true
138
139     logrotate:
140         daysToKeep: '{build-days-to-keep}'
141         numToKeep: '{build-num-to-keep}'
142         artifactDaysToKeep: '{build-artifact-days-to-keep}'
143         artifactNumToKeep: '{build-artifact-num-to-keep}'
144
145     parameters:
146         - project-parameter:
147             project: 'integration/test'
148         - integration-patch-refspec:
149             branch: '$GERRIT_REFSPEC'
150
151     scm:
152         - integration-gerrit-scm:
153             credentials-id: '{ssh-credentials}'
154             basedir: 'test'
155             refspec: '$PATCHREFSPEC'
156             branch: 'master'
157
158     wrappers:
159         - build-timeout
160         - ssh-agent-credentials:
161             users:
162                 - '{ssh-credentials}'
163
164     triggers:
165         - integration-trigger-patch-submitted:
166             name: 'integration/test'
167             branch: 'master'
168             pattern: '**'
169
170     builders:
171         - shell: |
172             virtualenv $WORKSPACE/venv-tox
173             source $WORKSPACE/venv-tox/bin/activate
174             pip install tox argparse
175             tox --version
176             cd $WORKSPACE/test
177             tox
178
179     publishers:
180         - email-notification:
181             email-prefix: '[integration]'
182
183 # Template: integration-csit-verify-1node-library
184 # Goal: Verify changes in csit folder not covered by projects suite verify jobs (e.g. libraries or variables)
185 # Operation: This job template performs a base openflow test when there is a change in the libraries folder
186
187 - job-template:
188     name: 'integration-csit-verify-1node-library'
189
190     project-type: freestyle
191     node: dynamic_robot
192
193     logrotate:
194         daysToKeep: '{build-days-to-keep}'
195         numToKeep: '{build-num-to-keep}'
196         artifactDaysToKeep: '{build-artifact-days-to-keep}'
197         artifactNumToKeep: '{build-artifact-num-to-keep}'
198
199     parameters:
200         - project-parameter:
201             project: 'integration/test'
202         - integration-branch:
203             branch: 'master'
204         - integration-bundleurl:
205             bundleurl: 'last'
206         - integration-controller-scope:
207             controller-scope: 'only'
208         - integration-controller-features:
209             controller-features: 'odl-openflowplugin-flow-services-ui,odl-bgpcep-pcep-all,odl-bgpcep-pcep,odl-netconf-connector-all'
210         - integration-test-options:
211             test-options: '-e adsal'
212         - integration-test-plan:
213             test-plan: 'test-libraries.txt'
214         - integration-patch-refspec:
215             branch: '$GERRIT_REFSPEC'
216
217     scm:
218         - integration-gerrit-scm:
219             credentials-id: '{ssh-credentials}'
220             basedir: 'test'
221             refspec: '$PATCHREFSPEC'
222             branch: 'master'
223
224     wrappers:
225         - build-timeout
226         - integration-jclouds-controller-mininet:
227             controller-vms: 1
228             mininet-image: '{mininet-image}'
229             mininet-vms: '{mininet-vms}'
230             mininet-cloud-name: '{mininet-cloud-name}'
231         - ssh-agent-credentials:
232             users:
233                 - '{ssh-credentials}'
234
235     triggers:
236         - integration-trigger-patch-submitted:
237             name: 'integration/test'
238             branch: 'master'
239             pattern: 'csit/libraries/*'
240
241     builders:
242         - integration-install-robotframework
243         - inject:
244             properties-file: 'env.properties'
245         - integration-get-slave-addresses
246         - inject:
247             properties-file: 'slave_addresses.txt'
248         - integration-get-bundle-vars
249         - inject:
250             properties-file: 'bundle_vars.txt'
251         - integration-deploy-controller-run-test
252         - integration-cleanup-tmp
253
254     publishers:
255         - integration-robot:
256             unstable-if: 0.0
257             pass-if: 0.0
258         - archive:
259             artifacts: 'karaf.log'
260         - email-notification:
261             email-prefix: '[integration]'
262
263 # Template: integration-distribution-test-{stream}
264 # Goal: Verify a distribution through all system test available
265 # Operation: This daily job template takes a distribution and passes all available system test
266
267 - job-template:
268     name: 'integration-distribution-test-{stream}'
269
270     project-type: freestyle
271     node: dynamic_verify
272
273     logrotate:
274         daysToKeep: '{build-days-to-keep}'
275         numToKeep: '{build-num-to-keep}'
276         artifactDaysToKeep: '{build-artifact-days-to-keep}'
277         artifactNumToKeep: '{build-artifact-num-to-keep}'
278
279     parameters:
280         - integration-bundleurl:
281             bundleurl: 'last'
282
283     triggers:
284         - timed: 'H H * * 6'
285
286     builders:
287         - trigger-builds:
288             - project: '{csit-list}'
289               block: true
290               predefined-parameters:
291                   BUNDLEURL=$BUNDLEURL
292
293     publishers:
294         - email-notification:
295             email-prefix: '[integration]'
296
297 # Template: integration-patch-test-{stream}
298 # Goal: Build a patch and run all available system test on a distribution containing the change
299 # Operation: This job template builds a patch, creates a distribution containing the patch, and
300 # triggers the distribution test when test-integration is used in gerrit comments
301
302 - job-template:
303     name: 'integration-patch-test-{stream}'
304
305     project-type: maven
306     node: dynamic_verify
307     jdk: '{jdk}'
308
309     logrotate:
310         daysToKeep: '{build-days-to-keep}'
311         numToKeep: '{build-num-to-keep}'
312         artifactDaysToKeep: '{build-artifact-days-to-keep}'
313         artifactNumToKeep: '{build-artifact-num-to-keep}'
314
315     parameters:
316         - gerrit-project-parameter:
317             project: '$GERRIT_PROJECT'
318         - gerrit-refspec-parameter:
319             refspec: '$GERRIT_REFSPEC'
320         - project-parameter:
321             project: '$GERRIT_PROJECT'
322         - integration-distribution-git-url
323
324     scm:
325         - integration-gerrit-scm:
326             credentials-id: '{ssh-credentials}'
327             basedir: '$GERRIT_PROJECT'
328             refspec: '$GERRIT_REFSPEC'
329             branch: '{branch}'
330         - integration-distribution-scm:
331             credentials-id: '{ssh-credentials}'
332             branch: '{branch}'
333
334     wrappers:
335         - build-timeout
336         - ssh-agent-credentials:
337             users:
338                 - '{ssh-credentials}'
339
340     triggers:
341         - gerrit:
342             server-name: 'OpenDaylight'
343             trigger-on:
344                 - comment-added-contains-event:
345                     comment-contains-value: 'test-integration'
346             projects:
347               - project-compare-type: 'ANT'
348                 project-pattern: '**'
349                 branches:
350                   - branch-compare-type: 'ANT'
351                     branch-pattern: '**/{branch}'
352             skip-vote:
353                 successful: true
354                 failed: true
355                 unstable: true
356                 notbuilt: true
357
358     prebuilders:
359         - integration-get-bundle-url
360         - inject:
361             properties-file: 'bundle.txt'
362         - wipe-org-opendaylight-repo
363         - provide-maven-settings:
364             global-settings-file: '{odl-global-settings}'
365             settings-file: '{yangtools-settings}'
366         - maven-target:
367             maven-version: '{mvn33}'
368             pom: '$GERRIT_PROJECT/pom.xml'
369             goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
370             java-opts:
371                 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
372             settings: '{integration-settings}'
373             global-settings: '{odl-global-settings}'
374
375     maven:
376         maven-name: '{mvn33}'
377         root-pom: 'distribution/pom.xml'
378         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
379         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
380         settings: '{integration-settings}'
381         global-settings: '{odl-global-settings}'
382         ignore-upstream-changes: true
383         post-step-run-condition: 'SUCCESS'
384
385     postbuilders:
386         - trigger-builds:
387             - project: 'integration-distribution-test-{stream}'
388               block: true
389               predefined-parameters:
390                   BUNDLEURL=$BUNDLEURL
391
392     publishers:
393         - email-notification:
394             email-prefix: '[integration]'
395
396 # Template: integration-multipatch-test-{stream}
397 # Goal: Build one or more patches and run all available system test on a distribution containing the change
398 # Operation: This job template checks out and builds each patch provided in job parameters, creates a distribution
399 # containing these patches, and triggers the distribution test job which includes most (if not all) available
400 # CSIT jobs
401
402 - job-template:
403     name: 'integration-multipatch-test-{stream}'
404
405     project-type: maven
406     node: dynamic_verify
407     jdk: '{jdk}'
408
409     logrotate:
410         daysToKeep: '{build-days-to-keep}'
411         numToKeep: '{build-num-to-keep}'
412         artifactDaysToKeep: '{build-artifact-days-to-keep}'
413         artifactNumToKeep: '{build-artifact-num-to-keep}'
414
415     parameters:
416         - patches-to-build-parameter:
417             patches_to_build: '$PATCHES_TO_BUILD'
418
419     wrappers:
420         - build-timeout
421         - ssh-agent-credentials:
422             users:
423                 - '{ssh-credentials}'
424
425     prebuilders:
426         - wipe-org-opendaylight-repo
427         - integration-multipatch-builder
428         - inject:
429             properties-file: 'bundle.txt'
430
431     maven:
432         maven-name: '{mvn33}'
433         root-pom: 'patch_tester/pom.xml'
434         goals: 'clean install -f patch_tester/pom.xml -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
435         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
436         settings: '{integration-settings}'
437         global-settings: '{odl-global-settings}'
438         ignore-upstream-changes: true
439         post-step-run-condition: 'SUCCESS'
440
441     postbuilders:
442         - trigger-builds:
443             - project: 'integration-distribution-test-{stream}'
444               block: true
445               predefined-parameters:
446                   BUNDLEURL=$BUNDLEURL
447
448     publishers:
449         - email-notification:
450             email-prefix: '[integration]'