Add cronjob to trigger all packer jobs periodically
[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-basic-only-{stream},
32                 netvirt-csit-1node-openstack-basic-all-{stream},
33                 netvirt-csit-1node-openstack-mitaka-openstack-{stream},
34                 netvirt-vpnservice-csit-1node-openstack-mitaka-openstack-{stream},
35                 netvirt-csit-3node-clustering-only-{stream},
36                 ocpplugin-csit-1node-get-only-{stream},
37                 ocpplugin-csit-1node-get-all-{stream},
38                 ocpplugin-csit-1node-scalability-only-{stream},
39                 ocpplugin-csit-1node-scalability-all-{stream},
40                 openflowplugin-csit-1node-flow-services-only-{stream},
41                 openflowplugin-csit-1node-flow-services-all-{stream},
42                 openflowplugin-csit-1node-scalability-only-{stream},
43                 openflowplugin-csit-1node-cbench-performance-only-{stream},
44                 openflowplugin-csit-1node-config-performance-only-{stream},
45                 openflowplugin-csit-3node-clustering-only-{stream},
46                 ovsdb-csit-1node-southbound-all-{stream},
47                 ovsdb-csit-1node-southbound-only-{stream},
48                 ovsdb-csit-3node-clustering-only-{stream},
49                 packetcable-csit-1node-pcmm-only-{stream},
50                 packetcable-csit-1node-pcmm-all-{stream},
51                 sxp-csit-1node-basic-only-{stream},
52                 sxp-csit-1node-filtering-all-{stream},
53                 sxp-csit-1node-topology-only-{stream},
54                 sxp-csit-1node-topology-all-{stream},
55                 topoprocessing-csit-1node-topology-operations-all-{stream},
56                 topoprocessing-csit-1node-topology-operations-only-{stream},
57                 tsdr-csit-1node-cassandra-datastore-only-{stream},
58                 tsdr-csit-1node-hbase-datastore-all-{stream},
59                 tsdr-csit-1node-hbase-datastore-only-{stream},
60                 tsdr-csit-1node-hsqldb-datastore-all-{stream},
61                 tsdr-csit-1node-hsqldb-datastore-only-{stream},
62                 usc-csit-1node-channel-only-{stream},
63                 usc-csit-1node-channel-all-{stream},
64                 usc-csit-1node-tcp-only-{stream},
65                 usc-csit-1node-tcp-all-{stream},
66                 vtn-csit-1node-manager-only-{stream},
67                 vtn-csit-1node-manager-all-{stream},
68                 vtn-csit-1node-coordinator-only-{stream}
69
70         - boron:
71             branch: 'stable/boron'
72             jdk: 'openjdk8'
73             jre: 'openjdk8'
74             csit-list: >
75                 controller-csit-3node-clustering-only-{stream},
76                 controller-csit-3node-clustering-all-{stream},
77                 integration-distribution-deploy-{stream},
78                 integration-distribution-offline-{stream},
79                 l2switch-csit-1node-switch-only-{stream},
80                 l2switch-csit-1node-switch-all-{stream},
81                 l2switch-csit-1node-scalability-only-{stream},
82                 l2switch-csit-1node-scalability-all-{stream},
83                 lispflowmapping-csit-1node-msmr-only-{stream},
84                 lispflowmapping-csit-1node-msmr-all-{stream},
85                 nemo-csit-1node-engine-all-{stream},
86                 nemo-csit-1node-engine-only-{stream},
87                 netvirt-csit-1node-openstack-basic-only-{stream},
88                 netvirt-csit-1node-openstack-basic-all-{stream},
89                 netvirt-csit-1node-openstack-mitaka-openstack-{stream},
90                 netvirt-vpnservice-csit-1node-openstack-mitaka-openstack-{stream},
91                 netvirt-csit-3node-clustering-only-{stream},
92                 ocpplugin-csit-1node-get-only-{stream},
93                 ocpplugin-csit-1node-get-all-{stream},
94                 ocpplugin-csit-1node-scalability-only-{stream},
95                 ocpplugin-csit-1node-scalability-all-{stream},
96                 openflowplugin-csit-1node-flow-services-only-{stream},
97                 openflowplugin-csit-1node-flow-services-all-{stream},
98                 openflowplugin-csit-1node-scalability-only-{stream},
99                 openflowplugin-csit-1node-cbench-performance-only-{stream},
100                 openflowplugin-csit-1node-config-performance-only-{stream},
101                 openflowplugin-csit-3node-clustering-only-{stream},
102                 ovsdb-csit-1node-southbound-all-{stream},
103                 ovsdb-csit-1node-southbound-only-{stream},
104                 ovsdb-csit-3node-clustering-only-{stream},
105                 packetcable-csit-1node-pcmm-only-{stream},
106                 packetcable-csit-1node-pcmm-all-{stream},
107                 sxp-csit-1node-basic-only-{stream},
108                 sxp-csit-1node-filtering-all-{stream},
109                 sxp-csit-1node-topology-only-{stream},
110                 sxp-csit-1node-topology-all-{stream},
111                 topoprocessing-csit-1node-topology-operations-all-{stream},
112                 topoprocessing-csit-1node-topology-operations-only-{stream},
113                 tsdr-csit-1node-cassandra-datastore-only-{stream},
114                 tsdr-csit-1node-hbase-datastore-only-{stream},
115                 tsdr-csit-1node-hsqldb-datastore-only-{stream},
116                 usc-csit-1node-channel-only-{stream},
117                 usc-csit-1node-channel-all-{stream},
118                 usc-csit-1node-tcp-only-{stream},
119                 usc-csit-1node-tcp-all-{stream},
120                 vtn-csit-1node-manager-only-{stream},
121                 vtn-csit-1node-manager-all-{stream},
122                 vtn-csit-1node-coordinator-only-{stream}
123
124         - beryllium:
125             branch: 'stable/beryllium'
126             jdk: 'openjdk7'
127             jre: 'openjdk7'
128             csit-list: >
129                 aaa-csit-1node-authn-only-{stream},
130                 aaa-csit-1node-authn-all-{stream},
131                 bgpcep-csit-1node-userfeatures-only-{stream},
132                 bgpcep-csit-1node-userfeatures-all-{stream},
133                 capwap-csit-1node-ac-only-{stream},
134                 capwap-csit-1node-ac-all-{stream},
135                 integration-distribution-offline-{stream},
136                 integration-distribution-deploy-{stream},
137                 l2switch-csit-1node-switch-only-{stream},
138                 l2switch-csit-1node-scalability-only-{stream},
139                 l2switch-csit-1node-scalability-all-{stream},
140                 lispflowmapping-csit-1node-msmr-only-{stream},
141                 lispflowmapping-csit-1node-msmr-all-{stream},
142                 nemo-csit-1node-engine-all-{stream},
143                 nemo-csit-1node-engine-only-{stream},
144                 netconf-csit-1node-userfeatures-all-{stream},
145                 netconf-csit-1node-userfeatures-only-{stream},
146                 netvirt-csit-1node-openstack-basic-only-{stream},
147                 netvirt-csit-1node-openstack-basic-all-{stream},
148                 netvirt-csit-3node-clustering-only-{stream},
149                 nic-csit-1node-basic-all-{stream},
150                 nic-csit-1node-basic-only-{stream},
151                 openflowplugin-csit-1node-flow-services-only-{stream},
152                 openflowplugin-csit-1node-flow-services-all-{stream},
153                 openflowplugin-csit-1node-scalability-only-{stream},
154                 openflowplugin-csit-1node-cbench-performance-only-{stream},
155                 openflowplugin-csit-1node-config-performance-only-{stream},
156                 openflowplugin-csit-3node-clustering-only-{stream},
157                 ovsdb-csit-1node-southbound-all-{stream},
158                 ovsdb-csit-1node-southbound-only-{stream},
159                 packetcable-csit-1node-pcmm-only-{stream},
160                 packetcable-csit-1node-pcmm-all-{stream},
161                 snmp-csit-1node-basic-only-{stream},
162                 snmp-csit-1node-basic-all-{stream},
163                 sxp-csit-1node-basic-only-{stream},
164                 sxp-csit-1node-filtering-only-{stream},
165                 sxp-csit-1node-filtering-all-{stream},
166                 topoprocessing-csit-1node-topology-operations-all-{stream},
167                 topoprocessing-csit-1node-topology-operations-only-{stream},
168                 tsdr-csit-1node-cassandra-datastore-only-{stream},
169                 tsdr-csit-1node-hbase-datastore-only-{stream},
170                 tsdr-csit-1node-hsqldb-datastore-only-{stream},
171                 usc-csit-1node-channel-only-{stream},
172                 usc-csit-1node-channel-all-{stream},
173                 usc-csit-1node-tcp-only-{stream},
174                 usc-csit-1node-tcp-all-{stream},
175                 vtn-csit-1node-manager-only-{stream},
176                 vtn-csit-1node-manager-all-{stream},
177                 vtn-csit-1node-coordinator-only-{stream}
178
179
180 # Template: integration-csit-verify-1node-library
181 # Goal: Verify changes in csit folder not covered by projects suite verify jobs (e.g. libraries or variables)
182 # Operation: This job template performs a base openflow test when there is a change in the libraries folder
183
184 - job-template:
185     name: 'integration-csit-verify-1node-library'
186
187     project-type: freestyle
188     node: centos7-robot-2c-2g
189
190     logrotate:
191         daysToKeep: '{build-days-to-keep}'
192         numToKeep: '{build-num-to-keep}'
193         artifactDaysToKeep: '{build-artifact-days-to-keep}'
194         artifactNumToKeep: '{build-artifact-num-to-keep}'
195
196     parameters:
197         - opendaylight-infra-parameters:
198             project: 'integration/test'
199             branch: '{branch}'
200             refspec: 'refs/heads/{branch}'
201             artifacts: '{archive-artifacts}'
202         - integration-branch:
203             branch: 'stable/boron'
204         - integration-distribution-stream:
205             stream: 'boron'
206         - integration-bundleurl:
207             bundleurl: 'last'
208         - integration-controller-scope:
209             controller-scope: 'only'
210         - integration-controller-features:
211             controller-features: >
212                 odl-clustering-test-app,
213                 odl-openflowplugin-flow-services-ui,
214                 odl-bgpcep-pcep,
215                 odl-bgpcep-bgp,
216                 odl-netconf-connector-all
217         - integration-test-options:
218             test-options: '-v TIMEOUT_BUG_4220:10s'
219         - integration-stream-test-plan:
220             stream-test-plan: 'test-libraries-boron.txt'
221         - integration-test-plan:
222             test-plan: 'test-libraries.txt'
223         - integration-patch-refspec:
224             branch: '$GERRIT_REFSPEC'
225         - integration-jdk-version:
226             jdkversion: 'openjdk8'
227
228     scm:
229         - integration-gerrit-scm:
230             basedir: 'test'
231             refspec: '$PATCHREFSPEC'
232             branch: 'master'
233
234     wrappers:
235         - opendaylight-infra-wrappers:
236             build-timeout: '{build-timeout}'
237         - integration-jclouds-controller-mininet:
238             controller-image: '{controller-image}'
239             controller-vms: 1
240             mininet-image: '{mininet-image}'
241             mininet-vms: '{mininet-vms}'
242
243     triggers:
244         - integration-trigger-patch-submitted:
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-prefix: '[integration]'
270         - integration-csit-archive-build
271         - opendaylight-infra-shiplogs:
272             maven-version: 'mvn33'
273
274 # Template: integration-distribution-test-{stream}
275 # Goal: Verify a distribution through all system test available
276 # Operation: This daily job template takes a distribution and passes all available system test
277
278 - job-template:
279     name: 'integration-distribution-test-{stream}'
280
281     project-type: freestyle
282     node: centos7-java-builder-2c-8g
283
284     logrotate:
285         daysToKeep: '{build-days-to-keep}'
286         numToKeep: '{build-num-to-keep}'
287         artifactDaysToKeep: '{build-artifact-days-to-keep}'
288         artifactNumToKeep: '{build-artifact-num-to-keep}'
289
290     parameters:
291         - integration-bundleurl:
292             bundleurl: 'last'
293         - integration-jdk-version:
294             jdkversion: '{jre}'
295
296     triggers:
297         - timed: 'H H * * 6'
298
299     builders:
300         - trigger-builds:
301             - project: '{csit-list}'
302               block: true
303               predefined-parameters:
304                   BUNDLEURL=$BUNDLEURL
305
306     publishers:
307         - email-notification:
308             email-prefix: '[integration]'
309
310 # Template: integration-patch-test-{stream}
311 # Goal: Build a patch and run all available system test on a distribution containing the change
312 # Operation: This job template builds a patch, creates a distribution containing the patch, and
313 # triggers the distribution test when test-integration is used in gerrit comments
314
315 - job-template:
316     name: 'integration-patch-test-{stream}'
317
318     project-type: maven
319     node: centos7-java-builder-2c-8g
320     jdk: '{jdk}'
321
322     logrotate:
323         daysToKeep: '{build-days-to-keep}'
324         numToKeep: '{build-num-to-keep}'
325         artifactDaysToKeep: '{build-artifact-days-to-keep}'
326         artifactNumToKeep: '{build-artifact-num-to-keep}'
327
328     parameters:
329         - opendaylight-infra-parameters:
330             project: '$GERRIT_PROJECT'
331             branch: '{branch}'
332             refspec: '$GERRIT_REFSPEC'
333             artifacts: '{archive-artifacts} **/dependency_tree.txt'
334         - integration-branch:
335             branch: '{branch}'
336         - integration-distribution-git-url
337
338     scm:
339         - integration-gerrit-scm:
340             basedir: '$GERRIT_PROJECT'
341             refspec: '$GERRIT_REFSPEC'
342             branch: '{branch}'
343         - integration-distribution-scm:
344             branch: '{branch}'
345
346     wrappers:
347         - opendaylight-infra-wrappers:
348             build-timeout: '{build-timeout}'
349
350     triggers:
351         - gerrit:
352             server-name: 'OpenDaylight'
353             trigger-on:
354                 - comment-added-contains-event:
355                     comment-contains-value: 'test-integration'
356             projects:
357               - project-compare-type: 'ANT'
358                 project-pattern: '**'
359                 branches:
360                   - branch-compare-type: 'ANT'
361                     branch-pattern: '**/{branch}'
362             skip-vote:
363                 successful: true
364                 failed: true
365                 unstable: true
366                 notbuilt: true
367
368     prebuilders:
369         - integration-rebase-gerrit-patch
370         - integration-get-bundle-url
371         - inject:
372             properties-file: 'bundle.txt'
373         - wipe-org-opendaylight-repo
374         - provide-maven-settings:
375             global-settings-file: 'odl-global-settings'
376             settings-file: 'integration-settings'
377         - maven-target:
378             maven-version: 'mvn33'
379             pom: '$GERRIT_PROJECT/pom.xml'
380             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}'
381             java-opts:
382                 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
383             settings: 'integration-settings'
384             settings-type: cfp
385             global-settings: 'odl-global-settings'
386             global-settings-type: cfp
387
388     maven:
389         maven-name: 'mvn33'
390         root-pom: 'distribution/pom.xml'
391         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'
392         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
393         settings: 'integration-settings'
394         settings-type: cfp
395         global-settings: 'odl-global-settings'
396         global-settings-type: cfp
397         ignore-upstream-changes: true
398         post-step-run-condition: 'SUCCESS'
399
400     postbuilders:
401         - trigger-builds:
402             - project: '{csit-list}'
403               block: true
404               predefined-parameters:
405                   BUNDLEURL=$BUNDLEURL
406
407     publishers:
408         - opendaylight-infra-shiplogs:
409             maven-version: 'mvn33'
410         - email-notification:
411             email-prefix: '[$GERRIT_PROJECT]'
412
413 # Template: integration-multipatch-test-{stream}
414 # Goal: Build one or more patches and run all available system test on a distribution containing the change
415 # Operation: This job template checks out and builds each patch provided in job parameters, creates a distribution
416 # containing these patches, and triggers the distribution test job which includes most (if not all) available
417 # CSIT jobs
418
419 - job-template:
420     name: 'integration-multipatch-test-{stream}'
421
422     project-type: maven
423     node: centos7-java-builder-8c-8g
424     jdk: '{jdk}'
425
426     logrotate:
427         daysToKeep: '{build-days-to-keep}'
428         numToKeep: '{build-num-to-keep}'
429         artifactDaysToKeep: '{build-artifact-days-to-keep}'
430         artifactNumToKeep: '{build-artifact-num-to-keep}'
431
432     parameters:
433         - patches-to-build-parameter:
434             patches_to_build: '$PATCHES_TO_BUILD'
435         - integration-branch:
436             branch: '{branch}'
437         - opendaylight-infra-parameters:
438             project: 'integration/distribution'
439             branch: '{branch}'
440             refspec: 'refs/heads/{branch}'
441             artifacts: '{archive-artifacts} **/dependency_tree.txt'
442
443     prebuilders:
444         - wipe-org-opendaylight-repo
445         - integration-multipatch-builder
446         - inject:
447             properties-file: 'bundle.txt'
448         - provide-maven-settings:
449             global-settings-file: 'odl-global-settings'
450             settings-file: 'yangtools-settings'
451
452     wrappers:
453         - opendaylight-infra-wrappers:
454             build-timeout: '1200'
455
456     maven:
457         maven-name: 'mvn33'
458         root-pom: 'patch_tester/pom.xml'
459         # TODO: Make Maven options configurable. Currently tests are not skipped, everything else is.
460         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}'
461         maven-opts: '-Xmx7168m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
462         settings: 'yangtools-settings'
463         settings-type: cfp
464         global-settings: 'odl-global-settings'
465         global-settings-type: cfp
466         post-step-run-condition: 'SUCCESS'
467
468     postbuilders:
469         - trigger-builds:
470             - project: '{csit-list}'
471               block: true
472               predefined-parameters:
473                   BUNDLEURL=$BUNDLEURL
474
475     publishers:
476         - opendaylight-infra-shiplogs:
477             maven-version: 'mvn33'
478         - email-notification:
479             email-prefix: '[int/dist]'