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