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