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