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