d49ec018099ae7c64deaf934f1f325a23434e2b9
[ci-management.git] / jjb / hc2vpp / hc2vpp-csit.yaml
1 - project:
2     name: hc2vpp-csit
3     description: 'jenkins jobs to test Hc2vpp features.'
4     jobs:
5         - 'hc2vpp-csit-integration-{stream}-{os}'
6         - 'hc2vpp-csit-verify-{stream}-{os}'
7         - 'hc2vpp-csit-integration-odl-{odl}-{stream}-{os}'
8         - 'hc2vpp-csit-verify-odl-{odl}-{stream}-{os}'
9     project: 'hc2vpp'
10     build-artifact-num-to-keep: 10
11     stream:
12         - master:
13             branch: 'master'
14             repo-stream-part: 'master'
15         - '1701':
16             branch: 'stable/1701'
17             repo-stream-part: 'stable.1701'
18         - '1704':
19             branch: 'stable/1704'
20             repo-stream-part: 'stable.1704'
21         - '1707':
22             branch: 'stable/1707'
23             repo-stream-part: 'stable.1707'
24         - '1710':
25             branch: 'stable/1710'
26             repo-stream-part: 'stable.1710'
27     os:
28         - ubuntu1604:
29             repo-os-part: 'ubuntu.xenial.main'
30     odl:
31         - carbon
32
33 - project:
34     name: csit-hc2vpp-perf
35     description: 'jenkins jobs to test Hc2vpp performance.'
36     jobs:
37         - 'hc2vpp-csit-perf-{stream}-{os}'
38     project: 'hc2vpp'
39     build-artifact-num-to-keep: 10
40     stream:
41         - master:
42             branch: 'master'
43             repo-stream-part: 'master'
44     os:
45         - ubuntu1604:
46             repo-os-part: 'ubuntu.xenial.main'
47     odl:
48         - boron
49
50 - job-template:
51     name: 'hc2vpp-csit-integration-{stream}-{os}'
52
53     project-type: freestyle
54     node: '{os}-basebuild-4c-4g'
55     concurrent: true
56
57     logrotate:
58         daysToKeep: '{build-days-to-keep}'
59         numToKeep: '{build-num-to-keep}'
60         artifactDaysToKeep: '{build-artifact-days-to-keep}'
61         artifactNumToKeep: '{build-artifact-num-to-keep}'
62
63     parameters:
64         - project-parameter:
65             project: '{project}'
66         - os-parameter:
67             os: '{os}'
68         - stream-parameter:
69             stream: '{stream}'
70
71     scm:
72         - git-scm:
73             credentials-id: 'jenkins-gerrit-credentials'
74             branch: '{branch}'
75
76     wrappers:
77         - fdio-infra-wrappers:
78             build-timeout: '{build-timeout}'
79
80     triggers:
81         - reverse:
82             jobs: 'hc2vpp-integration-{stream}-{os}'
83             result: 'success'
84
85     builders:
86         - shell:
87             !include-raw-escape: include-raw-hc2vpp-csit-integration.sh
88
89     publishers:
90         - archive-artifacts:
91             artifacts: 'csit/archive/*.*'
92             latest-only: false
93         - email-notification:
94             email-prefix: '[hc2vpp]'
95
96         - robot-report:
97             output-path: 'csit/archive'
98
99 - job-template:
100     name: 'hc2vpp-csit-verify-{stream}-{os}'
101
102     project-type: maven
103     node: '{os}-basebuild-4c-4g'
104     jdk: openjdk8-{os}
105     concurrent: true
106
107     logrotate:
108         daysToKeep: '{build-days-to-keep}'
109         numToKeep: '{build-num-to-keep}'
110         artifactDaysToKeep: '{build-artifact-days-to-keep}'
111         artifactNumToKeep: '{build-artifact-num-to-keep}'
112
113     parameters:
114         - project-parameter:
115             project: '{project}'
116         - gerrit-parameter:
117             branch: '{branch}'
118         - os-parameter:
119             os: '{os}'
120         - maven-project-parameter:
121             maven: 'mvn33-new'
122         - maven-exec:
123             maven-version: 'mvn33-new'
124         - stream-parameter:
125             stream: '{stream}'
126         - odl-parameter:
127             odl: '{odl}'
128
129     scm:
130         - gerrit-trigger-scm:
131             credentials-id: 'jenkins-gerrit-credentials'
132             refspec: '$GERRIT_REFSPEC'
133             choosing-strategy: 'gerrit'
134
135     wrappers:
136         - fdio-infra-wrappers:
137             build-timeout: '{build-timeout}'
138
139     triggers:
140         - gerrit:
141             server-name: 'Primary'
142             trigger-on:
143                 - comment-added-contains-event:
144                     comment-contains-value: 'verify-csit'
145             projects:
146               - project-compare-type: 'ANT'
147                 project-pattern: '{project}'
148                 branches:
149                   - branch-compare-type: 'ANT'
150                     branch-pattern: '**/{branch}'
151             skip-vote:
152                 successful: true
153                 failed: true
154                 unstable: true
155                 notbuilt: true
156
157     prebuilders:
158         - provide-maven-settings:
159             settings-file: 'honeycomb-settings'
160             global-settings-file: 'global-settings'
161         - shell:
162             !include-raw-escape: include-raw-hc2vpp-csit-verify-prebuild.sh
163
164     maven:
165         maven-name: 'mvn33-new'
166         root-pom: 'pom.xml'
167         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -DskipTests -Dcheckstyle.skip=true'
168         maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
169         settings: 'hc2vpp-settings'
170         settings-type: cfp
171         global-settings: 'global-settings'
172         global-settings-type: cfp
173
174     postbuilders:
175         - shell:
176             !include-raw-escape: include-raw-hc2vpp-csit-verify.sh
177
178     publishers:
179         - archive-artifacts:
180             artifacts: 'csit/archive/*.*'
181             latest-only: false
182         - email-notification:
183             email-prefix: '[hc2vpp]'
184
185         - robot-report:
186             output-path: 'csit/archive'
187
188 - job-template:
189     name: 'hc2vpp-csit-integration-odl-{odl}-{stream}-{os}'
190
191     project-type: freestyle
192     node: '{os}-basebuild-4c-4g'
193     concurrent: true
194
195     logrotate:
196         daysToKeep: '{build-days-to-keep}'
197         numToKeep: '{build-num-to-keep}'
198         artifactDaysToKeep: '{build-artifact-days-to-keep}'
199         artifactNumToKeep: '{build-artifact-num-to-keep}'
200
201     parameters:
202         - project-parameter:
203             project: '{project}'
204         - os-parameter:
205             os: '{os}'
206         - stream-parameter:
207             stream: '{stream}'
208         - odl-parameter:
209             odl: '{odl}'
210
211     scm:
212         - git-scm:
213             credentials-id: 'jenkins-gerrit-credentials'
214             branch: '{branch}'
215
216     wrappers:
217         - fdio-infra-wrappers:
218             build-timeout: '{build-timeout}'
219
220     triggers:
221         - reverse:
222             jobs: 'hc2vpp-integration-{stream}-{os}'
223             result: 'success'
224
225     builders:
226         - shell:
227             !include-raw-escape: include-raw-hc2vpp-csit-integration-odl.sh
228
229     publishers:
230         - archive-artifacts:
231             artifacts: 'csit/archive/*.*'
232             latest-only: false
233         - email-notification:
234             email-prefix: '[hc2vpp]'
235
236         - robot-report:
237             output-path: 'csit/archive'
238
239 - job-template:
240     name: 'hc2vpp-csit-verify-odl-{odl}-{stream}-{os}'
241
242     project-type: maven
243     node: '{os}-basebuild-4c-4g'
244     jdk: openjdk8-{os}
245     concurrent: true
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         - project-parameter:
255             project: '{project}'
256         - gerrit-parameter:
257             branch: '{branch}'
258         - os-parameter:
259             os: '{os}'
260         - maven-project-parameter:
261             maven: 'mvn33-new'
262         - maven-exec:
263             maven-version: 'mvn33-new'
264         - stream-parameter:
265             stream: '{stream}'
266         - odl-parameter:
267             odl: '{odl}'
268
269     scm:
270         - gerrit-trigger-scm:
271             credentials-id: 'jenkins-gerrit-credentials'
272             refspec: '$GERRIT_REFSPEC'
273             choosing-strategy: 'gerrit'
274
275     wrappers:
276         - fdio-infra-wrappers:
277             build-timeout: '{build-timeout}'
278
279     triggers:
280         - gerrit:
281             server-name: 'Primary'
282             trigger-on:
283                 - comment-added-contains-event:
284                     comment-contains-value: 'verify-csit'
285             projects:
286               - project-compare-type: 'ANT'
287                 project-pattern: '{project}'
288                 branches:
289                   - branch-compare-type: 'ANT'
290                     branch-pattern: '**/{branch}'
291             skip-vote:
292                 successful: true
293                 failed: true
294                 unstable: true
295                 notbuilt: true
296
297     prebuilders:
298         - shell:
299             !include-raw-escape: include-raw-hc2vpp-csit-verify-prebuild.sh
300
301     maven:
302         maven-name: 'mvn33-new'
303         root-pom: 'pom.xml'
304         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -DskipTests -Dcheckstyle.skip=true'
305         maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
306         settings: 'hc2vpp-settings'
307         settings-type: cfp
308         global-settings: 'global-settings'
309         global-settings-type: cfp
310
311     postbuilders:
312         - shell:
313             !include-raw-escape: include-raw-hc2vpp-csit-verify-odl.sh
314
315     publishers:
316         - archive-artifacts:
317             artifacts: 'csit/archive/*.*'
318             latest-only: false
319         - email-notification:
320             email-prefix: '[hc2vpp]'
321
322         - robot-report:
323             output-path: 'csit/archive'
324
325 - job-template:
326     name: 'hc2vpp-csit-perf-{stream}-{os}'
327
328     project-type: freestyle
329     node: '{os}-basebuild-4c-4g'
330     concurrent: false
331
332     logrotate:
333         daysToKeep: '{build-days-to-keep}'
334         numToKeep: '{build-num-to-keep}'
335         artifactDaysToKeep: '{build-artifact-days-to-keep}'
336         artifactNumToKeep: '{build-artifact-num-to-keep}'
337
338     parameters:
339         - project-parameter:
340             project: '{project}'
341         - os-parameter:
342             os: '{os}'
343         - stream-parameter:
344             stream: '{stream}'
345         - odl-parameter:
346             odl: '{odl}'
347
348     scm:
349         - gerrit-trigger-scm:
350             credentials-id: 'jenkins-gerrit-credentials'
351             refspec: '$GERRIT_REFSPEC'
352             choosing-strategy: 'gerrit'
353
354     wrappers:
355         - fdio-infra-wrappers:
356             build-timeout: '{build-timeout}'
357
358     triggers:
359         - gerrit:
360             server-name: 'Primary'
361             trigger-on:
362                 - comment-added-contains-event:
363                     comment-contains-value: 'verify-perf'
364
365             projects:
366               - project-compare-type: 'ANT'
367                 project-pattern: '{project}'
368                 branches:
369                   - branch-compare-type: 'ANT'
370                     branch-pattern: '**/{branch}'
371             skip-vote:
372                 successful: false
373                 failed: false
374                 unstable: false
375                 notbuilt: false
376
377     builders:
378         - shell:
379             !include-raw-escape: include-raw-hc2vpp-csit-perf.sh
380
381     publishers:
382         - archive-artifacts:
383             artifacts: 'csit/archive/*.*'
384             latest-only: false
385
386         - robot-report:
387             output-path: 'csit/archive'
388
389         - fdio-infra-shiplogs:
390             maven-version: 'mvn33-new'
391
392 - parameter:
393     name: odl-parameter
394     parameters:
395         - string:
396             name: ODL
397             default: '{odl}'
398             description: "ODL version parameter."