Make integration-distribution-test job run daily
[releng/builder.git] / jjb / integration / integration-jobs.yaml
1
2 - project:
3     name: integration
4     jobs:
5         - 'integration-csit-verify-{stream}'
6         - 'integration-distribution-verify-{stream}'
7         - 'integration-distribution-merge-{stream}'
8         - 'integration-distribution-offline-{stream}'
9         - 'integration-distribution-test-{stream}'
10         - 'integration-patch-test-{stream}'
11
12     stream:
13         - master:
14             branch: 'master'
15             csit-list: 'controller-csit-1node-cds-netconf-only-{stream},controller-csit-1node-cds-netconf-all-{stream},aaa-csit-1node-cds-authn-only-{stream},aaa-csit-1node-cds-authn-all-{stream},openflowplugin-csit-1node-cds-flow-services-only-{stream},openflowplugin-csit-1node-cds-flow-services-all-{stream},openflowplugin-csit-1node-cds-scalability-only-{stream},openflowplugin-csit-1node-cds-scalability-all-{stream},openflowplugin-csit-1node-cds-cbench-performance-only-{stream},openflowplugin-csit-1node-cds-config-performance-only-{stream},l2switch-csit-1node-cds-switch-only-{stream},l2switch-csit-1node-cds-switch-all-{stream},l2switch-csit-1node-cds-scalability-only-{stream},l2switch-csit-1node-cds-scalability-all-{stream},vtn-csit-1node-cds-manager-only-{stream},vtn-csit-1node-cds-manager-all-{stream},lispflowmapping-csit-1node-cds-all-only-{stream},lispflowmapping-csit-1node-cds-all-all-{stream}'
16
17         - stable-helium:
18             branch: 'stable/helium'
19             csit-list: 'controller-csit-1node-imds-nsf-only-{stream},controller-csit-1node-imds-nsf-all-{stream},controller-csit-1node-imds-netconf-only-{stream},controller-csit-1node-imds-netconf-all-{stream},aaa-csit-1node-imds-authn-only-{stream},aaa-csit-1node-imds-authn-all-{stream},openflowplugin-csit-1node-imds-flow-services-only-{stream},openflowplugin-csit-1node-imds-flow-services-all-{stream},l2switch-csit-1node-imds-switch-only-{stream},l2switch-csit-1node-imds-switch-all-{stream},vtn-csit-1node-imds-manager-only-{stream},vtn-csit-1node-imds-manager-all-{stream},lispflowmapping-csit-1node-imds-all-only-{stream},lispflowmapping-csit-1node-imds-all-all-{stream}'
20
21     jdk: 'openjdk7'
22
23 # For the Job templates below replace instances of:
24 # PROJECT with your project name (eg. controller)
25 # MAVEN_GOALS with your maven goals to build
26 # MAVEN_OPTS with your maven options to build
27
28 - job-template:
29     name: 'integration-csit-verify-{stream}'
30
31     project-type: freestyle
32     node: dynamic_robot
33
34     logrotate:
35         daysToKeep: '{build-days-to-keep}'
36         numToKeep: '{build-num-to-keep}'
37         artifactDaysToKeep: '{build-artifact-days-to-keep}'
38         artifactNumToKeep: '{build-artifact-num-to-keep}'
39
40     parameters:
41         - project-parameter:
42             project: 'integration'
43         - integration-branch:
44             branch: '{branch}'
45         - integration-bundleurl:
46             bundleurl: 'last'
47         - integration-controller-scope:
48             controller-scope: 'only'
49         - integration-controller-features:
50             controller-features: 'odl-openflowplugin-flow-services-ui'
51         - integration-test-options:
52             test-options: '-e adsal'
53         - integration-test-plan:
54             test-plan: 'openflowplugin-flow-services.txt'
55
56     scm:
57         - gerrit-trigger-scm:
58             credentials-id: '{ssh-credentials}'
59             refspec: '$GERRIT_REFSPEC'
60             choosing-strategy: 'gerrit'
61
62     wrappers:
63         - build-timeout
64         - integration-jclouds-controller-mininet:
65             controller-vms: 1
66             mininet-vms: 1
67         - ssh-agent-credentials:
68             users:
69                 - '{ssh-credentials}'
70
71     triggers:
72         - integration-csit-gerrit-trigger-patch-submitted:
73             name: 'integration'
74             branch: '{branch}'
75
76     builders:
77         - integration-get-slave-addresses
78         - inject:
79             properties-file: 'slave_addresses.txt'
80         - integration-deploy-controller-run-test
81
82     publishers:
83         - integration-robot:
84             unstable-if: 0.0
85             pass-if: 0.0
86         - archive:
87             artifacts: 'karaf.log'
88         - email-notification:
89             email-prefix: '[integration]'
90
91 - job-template:
92     name: 'integration-distribution-verify-{stream}'
93
94     project-type: maven
95     node: dynamic_verify
96     concurrent: true
97     jdk: '{jdk}'
98
99     logrotate:
100         daysToKeep: '{build-days-to-keep}'
101         numToKeep: '{build-num-to-keep}'
102         artifactDaysToKeep: '{build-artifact-days-to-keep}'
103         artifactNumToKeep: '{build-artifact-num-to-keep}'
104
105     parameters:
106         - project-parameter:
107             project: 'integration'
108         - gerrit-parameter:
109             branch: '{branch}'
110
111     scm:
112         - gerrit-trigger-scm:
113             credentials-id: '{ssh-credentials}'
114             refspec: '$GERRIT_REFSPEC'
115             choosing-strategy: 'gerrit'
116
117     wrappers:
118         - build-timeout
119         - ssh-agent-credentials:
120             users:
121                 - '{ssh-credentials}'
122
123     triggers:
124         - integration-distribution-gerrit-trigger-patch-submitted:
125             name: 'integration'
126             branch: '{branch}'
127
128     prebuilders:
129         - wipe-org-opendaylight-repo
130
131     maven:
132         maven-name: '{mvn32}'
133         root-pom: 'pom.xml'
134         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
135         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
136         settings: '{integration-settings}'
137         global-settings: '{odl-global-settings}'
138         ignore-upstream-changes: true
139
140     publishers:
141         - email-notification:
142             email-prefix: '[integration]'
143
144 - job-template:
145     name: 'integration-distribution-merge-{stream}'
146
147     project-type: maven
148     node: dynamic_merge
149     jdk: '{jdk}'
150
151     logrotate:
152         daysToKeep: '{build-days-to-keep}'
153         numToKeep: '{build-num-to-keep}'
154         artifactDaysToKeep: '{build-artifact-days-to-keep}'
155         artifactNumToKeep: '{build-artifact-num-to-keep}'
156
157     parameters:
158         - project-parameter:
159             project: 'integration'
160
161     scm:
162         - gerrit-trigger-scm:
163             credentials-id: '{ssh-credentials}'
164             refspec: ''
165             choosing-strategy: 'default'
166
167     wrappers:
168         - build-timeout
169         - ssh-agent-credentials:
170             users:
171                 - '{ssh-credentials}'
172
173     triggers:
174         - integration-distribution-gerrit-trigger-patch-merged:
175             name: 'integration'
176             branch: '{branch}'
177
178     prebuilders:
179         - wipe-org-opendaylight-repo
180
181     maven:
182         maven-name: '{mvn32}'
183         root-pom: 'pom.xml'
184         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
185         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
186         settings: '{integration-settings}'
187         global-settings: '{odl-global-settings}'
188
189     publishers:
190         - email-notification:
191             email-prefix: '[integration]'
192         - maven-deploy:
193             id: ''
194             unique-version: true
195             deploy-unstable: false
196
197 - job-template:
198     name: 'integration-distribution-offline-{stream}'
199
200     project-type: freestyle
201     node: dynamic_controller
202
203     logrotate:
204         daysToKeep: '{build-days-to-keep}'
205         numToKeep: '{build-num-to-keep}'
206         artifactDaysToKeep: '{build-artifact-days-to-keep}'
207         artifactNumToKeep: '{build-artifact-num-to-keep}'
208
209     parameters:
210         - project-parameter:
211             project: 'integration'
212         - integration-branch:
213             branch: '{branch}'
214         - integration-bundleurl:
215             bundleurl: 'last'
216
217     scm:
218         - git-scm:
219             credentials-id: '{ssh-credentials}'
220             refspec: ''
221             branch: '{branch}'
222
223     wrappers:
224         - build-timeout
225         - ssh-agent-credentials:
226             users:
227                 - '{ssh-credentials}'
228
229     triggers:
230         - timed: 'H H * * *'
231
232     builders:
233         - integration-deploy-controller-offline
234
235     publishers:
236         - archive:
237             artifacts: 'karaf.log'
238         - email-notification:
239             email-prefix: '[integration]'
240
241 - job-template:
242     name: 'integration-distribution-test-{stream}'
243
244     project-type: freestyle
245     node: dynamic_controller
246
247     logrotate:
248         daysToKeep: '{build-days-to-keep}'
249         numToKeep: '{build-num-to-keep}'
250         artifactDaysToKeep: '{build-artifact-days-to-keep}'
251         artifactNumToKeep: '{build-artifact-num-to-keep}'
252
253     parameters:
254         - integration-bundleurl:
255             bundleurl: 'last'
256
257     triggers:
258         - timed: 'H H * * *'
259
260     builders:
261         - trigger-builds:
262             - project: '{csit-list}'
263               block: true
264               predefined-parameters:
265                   BUNDLEURL=$BUNDLEURL
266
267     publishers:
268         - email-notification:
269             email-prefix: '[integration]'
270
271 - job-template:
272     name: 'integration-patch-test-{stream}'
273
274     project-type: maven
275     node: dynamic_verify
276     jdk: '{jdk}'
277
278     logrotate:
279         daysToKeep: '{build-days-to-keep}'
280         numToKeep: '{build-num-to-keep}'
281         artifactDaysToKeep: '{build-artifact-days-to-keep}'
282         artifactNumToKeep: '{build-artifact-num-to-keep}'
283
284     parameters:
285         - project-parameter:
286             project: 'integration'
287         - integration-patch-git-url
288
289     scm:
290         - integration-gerrit-scm:
291             credentials-id: '{ssh-credentials}'
292             branch: '{branch}'
293         - integration-git-scm:
294             credentials-id: '{ssh-credentials}'
295             branch: '{branch}'
296
297     wrappers:
298         - build-timeout
299         - ssh-agent-credentials:
300             users:
301                 - '{ssh-credentials}'
302
303     triggers:
304         - gerrit:
305             server-name: 'OpenDaylight'
306             trigger-on:
307                 - comment-added-contains-event:
308                     comment-contains-value: 'test-integration'
309             projects:
310               - project-compare-type: 'ANT'
311                 project-pattern: '**'
312                 branches:
313                   - branch-compare-type: 'ANT'
314                     branch-pattern: '**/{branch}'
315             skip-vote:
316                 successful: true
317                 failed: true
318                 unstable: true
319                 notbuilt: true
320
321     prebuilders:
322         - integration-get-bundle-url
323         - inject:
324             properties-file: 'bundle.txt'
325         - wipe-org-opendaylight-repo
326         - maven-target:
327             maven-version: '{mvn32}'
328             pom: '$GERRIT_PROJECT/pom.xml'
329             goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
330             java-opts:
331                 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
332             settings: '{integration-settings}'
333             global-settings: '{odl-global-settings}'
334
335     maven:
336         maven-name: '{mvn32}'
337         root-pom: 'integration/pom.xml'
338         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
339         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
340         settings: '{integration-settings}'
341         global-settings: '{odl-global-settings}'
342         ignore-upstream-changes: true
343
344     postbuilders:
345         - trigger-builds:
346             - project: 'integration-distribution-test-{stream}'
347               block: true
348               predefined-parameters:
349                   BUNDLEURL=$BUNDLEURL
350
351     publishers:
352         - email-notification:
353             email-prefix: '[integration]'
354