Merge "Adding sshpass to centos after new karaf upgrade"
[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: '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},l2switch-csit-1node-cds-switch-only-{stream},l2switch-csit-1node-cds-switch-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},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             user: '{ssh-credentials}'
69
70     triggers:
71         - integration-csit-gerrit-trigger-patch-submitted:
72             name: 'integration'
73             branch: '{branch}'
74
75     builders:
76         - integration-get-slave-addresses
77         - inject:
78             properties-file: 'slave_addresses.txt'
79         - integration-deploy-controller-run-test
80
81     publishers:
82         - integration-robot:
83             unstable-if: 97.0
84             pass-if: 97.0
85         - archive:
86             artifacts: 'karaf.log'
87         - email-notification:
88             email-prefix: '[integration]'
89
90 - job-template:
91     name: 'integration-distribution-verify-{stream}'
92
93     project-type: maven
94     node: dynamic_verify
95     concurrent: true
96     jdk: '{jdk}'
97
98     logrotate:
99         daysToKeep: '{build-days-to-keep}'
100         numToKeep: '{build-num-to-keep}'
101         artifactDaysToKeep: '{build-artifact-days-to-keep}'
102         artifactNumToKeep: '{build-artifact-num-to-keep}'
103
104     parameters:
105         - project-parameter:
106             project: 'integration'
107         - gerrit-parameter:
108             branch: '{branch}'
109
110     scm:
111         - gerrit-trigger-scm:
112             credentials-id: '{ssh-credentials}'
113             refspec: '$GERRIT_REFSPEC'
114             choosing-strategy: 'gerrit'
115
116     wrappers:
117         - build-timeout
118         - ssh-agent-credentials:
119             user: '{ssh-credentials}'
120
121     triggers:
122         - integration-distribution-gerrit-trigger-patch-submitted:
123             name: 'integration'
124             branch: '{branch}'
125
126     prebuilders:
127         - wipe-org-opendaylight-repo
128
129     maven:
130         maven-name: '{mvn32}'
131         root-pom: 'pom.xml'
132         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
133         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
134         settings: '{integration-settings}'
135         global-settings: '{odl-global-settings}'
136         ignore-upstream-changes: true
137
138     publishers:
139         - email-notification:
140             email-prefix: '[integration]'
141
142 - job-template:
143     name: 'integration-distribution-merge-{stream}'
144
145     project-type: maven
146     node: dynamic_merge
147     jdk: '{jdk}'
148
149     logrotate:
150         daysToKeep: '{build-days-to-keep}'
151         numToKeep: '{build-num-to-keep}'
152         artifactDaysToKeep: '{build-artifact-days-to-keep}'
153         artifactNumToKeep: '{build-artifact-num-to-keep}'
154
155     parameters:
156         - project-parameter:
157             project: 'integration'
158
159     scm:
160         - gerrit-trigger-scm:
161             credentials-id: '{ssh-credentials}'
162             refspec: ''
163             choosing-strategy: 'default'
164
165     wrappers:
166         - build-timeout
167         - ssh-agent-credentials:
168             user: '{ssh-credentials}'
169
170     triggers:
171         - integration-distribution-gerrit-trigger-patch-merged:
172             name: 'integration'
173             branch: '{branch}'
174
175     prebuilders:
176         - wipe-org-opendaylight-repo
177
178     maven:
179         maven-name: '{mvn32}'
180         root-pom: 'pom.xml'
181         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
182         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
183         settings: '{integration-settings}'
184         global-settings: '{odl-global-settings}'
185
186     publishers:
187         - email-notification:
188             email-prefix: '[integration]'
189         - maven-deploy:
190             id: ''
191             unique-version: true
192             deploy-unstable: false
193
194 - job-template:
195     name: 'integration-distribution-offline-{stream}'
196
197     project-type: freestyle
198     node: dynamic_controller
199
200     logrotate:
201         daysToKeep: '{build-days-to-keep}'
202         numToKeep: '{build-num-to-keep}'
203         artifactDaysToKeep: '{build-artifact-days-to-keep}'
204         artifactNumToKeep: '{build-artifact-num-to-keep}'
205
206     parameters:
207         - project-parameter:
208             project: 'integration'
209         - integration-branch:
210             branch: '{branch}'
211         - integration-bundleurl:
212             bundleurl: 'last'
213
214     scm:
215         - git-scm:
216             credentials-id: '{ssh-credentials}'
217             refspec: ''
218             branch: '{branch}'
219
220     wrappers:
221         - build-timeout
222         - ssh-agent-credentials:
223             user: '{ssh-credentials}'
224
225     triggers:
226         - timed: 'H H * * *'
227
228     builders:
229         - integration-deploy-controller-offline
230
231     publishers:
232         - archive:
233             artifacts: 'karaf.log'
234         - email-notification:
235             email-prefix: '[integration]'
236
237 - job-template:
238     name: 'integration-distribution-test-{stream}'
239
240     project-type: freestyle
241     node: dynamic_controller
242
243     logrotate:
244         daysToKeep: '{build-days-to-keep}'
245         numToKeep: '{build-num-to-keep}'
246         artifactDaysToKeep: '{build-artifact-days-to-keep}'
247         artifactNumToKeep: '{build-artifact-num-to-keep}'
248
249     parameters:
250         - integration-bundleurl:
251             bundleurl: 'last'
252
253     builders:
254         - trigger-builds:
255             - project: '{csit-list}'
256               block: true
257               predefined-parameters:
258                   BUNDLEURL=$BUNDLEURL
259
260     publishers:
261         - email-notification:
262             email-prefix: '[integration]'
263
264 - job-template:
265     name: 'integration-patch-test-{stream}'
266
267     project-type: maven
268     node: dynamic_verify
269     jdk: '{jdk}'
270
271     logrotate:
272         daysToKeep: '{build-days-to-keep}'
273         numToKeep: '{build-num-to-keep}'
274         artifactDaysToKeep: '{build-artifact-days-to-keep}'
275         artifactNumToKeep: '{build-artifact-num-to-keep}'
276
277     parameters:
278         - project-parameter:
279             project: 'integration'
280         - integration-patch-git-url
281
282     scm:
283         - integration-gerrit-scm:
284             credentials-id: '{ssh-credentials}'
285             branch: '{branch}'
286         - integration-git-scm:
287             credentials-id: '{ssh-credentials}'
288             branch: '{branch}'
289
290     wrappers:
291         - build-timeout
292         - ssh-agent-credentials:
293             user: '{ssh-credentials}'
294
295     triggers:
296         - gerrit:
297             server-name: 'OpenDaylight'
298             trigger-on:
299                 - comment-added-contains-event:
300                     comment-contains-value: 'test-integration'
301             projects:
302               - project-compare-type: 'ANT'
303                 project-pattern: '**'
304                 branches:
305                   - branch-compare-type: 'ANT'
306                     branch-pattern: '**/{branch}'
307             skip-vote:
308                 successful: true
309                 failed: true
310                 unstable: true
311                 notbuilt: true
312
313     prebuilders:
314         - integration-get-bundle-url
315         - inject:
316             properties-file: 'bundle.txt'
317         - wipe-org-opendaylight-repo
318         - maven-target:
319             maven-version: '{mvn32}'
320             pom: '$GERRIT_PROJECT/pom.xml'
321             goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
322             java-opts:
323                 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
324             settings: '{integration-settings}'
325             global-settings: '{odl-global-settings}'
326
327     maven:
328         maven-name: '{mvn32}'
329         root-pom: 'integration/pom.xml'
330         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
331         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
332         settings: '{integration-settings}'
333         global-settings: '{odl-global-settings}'
334         ignore-upstream-changes: true
335
336     postbuilders:
337         - trigger-builds:
338             - project: 'integration-distribution-test-{stream}'
339               block: true
340               predefined-parameters:
341                   BUNDLEURL=$BUNDLEURL
342
343     publishers:
344         - email-notification:
345             email-prefix: '[integration]'
346