hc2vpp-csit.yaml revision 3990b58a
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        - '1710':
16            branch: 'stable/1710'
17            repo-stream-part: 'stable.1710'
18        - '1801':
19            branch: 'stable/1801'
20            repo-stream-part: 'stable.1801'
21        - '1804':
22            branch: 'stable/1804'
23            repo-stream-part: 'stable.1804'
24    os:
25        - ubuntu1604:
26            repo-os-part: 'ubuntu.xenial.main'
27    odl:
28        - carbon
29        - oxygen
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        - provide-maven-settings:
157            settings-file: 'honeycomb-settings'
158            global-settings-file: 'global-settings'
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        - provide-maven-settings:
297            settings-file: 'honeycomb-settings'
298            global-settings-file: 'global-settings'
299        - shell:
300            !include-raw-escape: include-raw-hc2vpp-csit-verify-prebuild.sh
301
302    maven:
303        maven-name: 'mvn33-new'
304        root-pom: 'pom.xml'
305        goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -DskipTests -Dcheckstyle.skip=true'
306        maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
307        settings: 'hc2vpp-settings'
308        settings-type: cfp
309        global-settings: 'global-settings'
310        global-settings-type: cfp
311
312    postbuilders:
313        - shell:
314            !include-raw-escape: include-raw-hc2vpp-csit-verify-odl.sh
315
316    publishers:
317        - archive-artifacts:
318            artifacts: 'csit/archive/*.*'
319            latest-only: false
320        - email-notification:
321            email-prefix: '[hc2vpp]'
322
323        - robot-report:
324            output-path: 'csit/archive'
325
326- job-template:
327    name: 'hc2vpp-csit-perf-{stream}-{os}'
328
329    project-type: freestyle
330    node: '{os}-basebuild-4c-4g'
331    concurrent: false
332
333    logrotate:
334        daysToKeep: '{build-days-to-keep}'
335        numToKeep: '{build-num-to-keep}'
336        artifactDaysToKeep: '{build-artifact-days-to-keep}'
337        artifactNumToKeep: '{build-artifact-num-to-keep}'
338
339    parameters:
340        - project-parameter:
341            project: '{project}'
342        - os-parameter:
343            os: '{os}'
344        - stream-parameter:
345            stream: '{stream}'
346        - odl-parameter:
347            odl: '{odl}'
348
349    scm:
350        - gerrit-trigger-scm:
351            credentials-id: 'jenkins-gerrit-credentials'
352            refspec: '$GERRIT_REFSPEC'
353            choosing-strategy: 'gerrit'
354
355    wrappers:
356        - fdio-infra-wrappers:
357            build-timeout: '{build-timeout}'
358
359    triggers:
360        - gerrit:
361            server-name: 'Primary'
362            trigger-on:
363                - comment-added-contains-event:
364                    comment-contains-value: 'verify-perf'
365
366            projects:
367              - project-compare-type: 'ANT'
368                project-pattern: '{project}'
369                branches:
370                  - branch-compare-type: 'ANT'
371                    branch-pattern: '**/{branch}'
372            skip-vote:
373                successful: false
374                failed: false
375                unstable: false
376                notbuilt: false
377
378    builders:
379        - shell:
380            !include-raw-escape: include-raw-hc2vpp-csit-perf.sh
381
382    publishers:
383        - archive-artifacts:
384            artifacts: 'csit/archive/*.*'
385            latest-only: false
386
387        - robot-report:
388            output-path: 'csit/archive'
389
390        - fdio-infra-shiplogs:
391            maven-version: 'mvn33-new'
392
393- parameter:
394    name: odl-parameter
395    parameters:
396        - string:
397            name: ODL
398            default: '{odl}'
399            description: "ODL version parameter."