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