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