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