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