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