Merge "Archive karaf logs compressed, cleanup workspace"
[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-cleanup-workspace
243         - integration-install-robotframework
244         - inject:
245             properties-file: 'env.properties'
246         - integration-get-slave-addresses
247         - inject:
248             properties-file: 'slave_addresses.txt'
249         - integration-get-bundle-vars
250         - inject:
251             properties-file: 'bundle_vars.txt'
252         - integration-deploy-controller-run-test
253         - integration-cleanup-tmp
254
255     publishers:
256         - integration-robot:
257             unstable-if: 0.0
258             pass-if: 0.0
259         - archive:
260             artifacts: 'karaf.log*'
261         - email-notification:
262             email-prefix: '[integration]'
263
264 # Template: integration-distribution-test-{stream}
265 # Goal: Verify a distribution through all system test available
266 # Operation: This daily job template takes a distribution and passes all available system test
267
268 - job-template:
269     name: 'integration-distribution-test-{stream}'
270
271     project-type: freestyle
272     node: dynamic_verify
273
274     logrotate:
275         daysToKeep: '{build-days-to-keep}'
276         numToKeep: '{build-num-to-keep}'
277         artifactDaysToKeep: '{build-artifact-days-to-keep}'
278         artifactNumToKeep: '{build-artifact-num-to-keep}'
279
280     parameters:
281         - integration-bundleurl:
282             bundleurl: 'last'
283
284     triggers:
285         - timed: 'H H * * 6'
286
287     builders:
288         - trigger-builds:
289             - project: '{csit-list}'
290               block: true
291               predefined-parameters:
292                   BUNDLEURL=$BUNDLEURL
293
294     publishers:
295         - email-notification:
296             email-prefix: '[integration]'
297
298 # Template: integration-patch-test-{stream}
299 # Goal: Build a patch and run all available system test on a distribution containing the change
300 # Operation: This job template builds a patch, creates a distribution containing the patch, and
301 # triggers the distribution test when test-integration is used in gerrit comments
302
303 - job-template:
304     name: 'integration-patch-test-{stream}'
305
306     project-type: maven
307     node: dynamic_verify
308     jdk: '{jdk}'
309
310     logrotate:
311         daysToKeep: '{build-days-to-keep}'
312         numToKeep: '{build-num-to-keep}'
313         artifactDaysToKeep: '{build-artifact-days-to-keep}'
314         artifactNumToKeep: '{build-artifact-num-to-keep}'
315
316     parameters:
317         - gerrit-project-parameter:
318             project: '$GERRIT_PROJECT'
319         - gerrit-refspec-parameter:
320             refspec: '$GERRIT_REFSPEC'
321         - project-parameter:
322             project: '$GERRIT_PROJECT'
323         - integration-distribution-git-url
324
325     scm:
326         - integration-gerrit-scm:
327             credentials-id: '{ssh-credentials}'
328             basedir: '$GERRIT_PROJECT'
329             refspec: '$GERRIT_REFSPEC'
330             branch: '{branch}'
331         - integration-distribution-scm:
332             credentials-id: '{ssh-credentials}'
333             branch: '{branch}'
334
335     wrappers:
336         - build-timeout
337         - ssh-agent-credentials:
338             users:
339                 - '{ssh-credentials}'
340
341     triggers:
342         - gerrit:
343             server-name: 'OpenDaylight'
344             trigger-on:
345                 - comment-added-contains-event:
346                     comment-contains-value: 'test-integration'
347             projects:
348               - project-compare-type: 'ANT'
349                 project-pattern: '**'
350                 branches:
351                   - branch-compare-type: 'ANT'
352                     branch-pattern: '**/{branch}'
353             skip-vote:
354                 successful: true
355                 failed: true
356                 unstable: true
357                 notbuilt: true
358
359     prebuilders:
360         - integration-get-bundle-url
361         - inject:
362             properties-file: 'bundle.txt'
363         - wipe-org-opendaylight-repo
364         - maven-target:
365             maven-version: '{mvn33}'
366             pom: '$GERRIT_PROJECT/pom.xml'
367             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'
368             java-opts:
369                 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
370             settings: '{integration-settings}'
371             global-settings: '{odl-global-settings}'
372
373     maven:
374         maven-name: '{mvn33}'
375         root-pom: 'distribution/pom.xml'
376         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
377         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
378         settings: '{integration-settings}'
379         global-settings: '{odl-global-settings}'
380         ignore-upstream-changes: true
381         post-step-run-condition: 'SUCCESS'
382
383     postbuilders:
384         - trigger-builds:
385             - project: 'integration-distribution-test-{stream}'
386               block: true
387               predefined-parameters:
388                   BUNDLEURL=$BUNDLEURL
389
390     publishers:
391         - email-notification:
392             email-prefix: '[$GERRIT_PROJECT]'
393
394 # Template: integration-multipatch-test-{stream}
395 # Goal: Build one or more patches and run all available system test on a distribution containing the change
396 # Operation: This job template checks out and builds each patch provided in job parameters, creates a distribution
397 # containing these patches, and triggers the distribution test job which includes most (if not all) available
398 # CSIT jobs
399
400 - job-template:
401     name: 'integration-multipatch-test-{stream}'
402
403     project-type: maven
404     node: dynamic_verify
405     jdk: '{jdk}'
406
407     logrotate:
408         daysToKeep: '{build-days-to-keep}'
409         numToKeep: '{build-num-to-keep}'
410         artifactDaysToKeep: '{build-artifact-days-to-keep}'
411         artifactNumToKeep: '{build-artifact-num-to-keep}'
412
413     parameters:
414         - patches-to-build-parameter:
415             patches_to_build: '$PATCHES_TO_BUILD'
416         - integration-branch:
417             branch: '{branch}'
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]'