vpp.yaml revision 3e387473
1- project:
2    name: vpp
3    jobs:
4        - 'vpp-verify-{stream}-{os}'
5        - 'vpp-merge-{stream}-{os}'
6        - 'vpp-verify-image-{stream}-{os}'
7        - 'vpp-docs-1609'
8
9    project: 'vpp'
10    os:
11        - ubuntu1404:
12            repo-os-part: 'ubuntu.trusty.main'
13        - ubuntu1604:
14            repo-os-part: 'ubuntu.xenial.main'
15        - centos7:
16            repo-os-part: 'centos7'
17    stream:
18        - master:
19            branch: 'master'
20            repo-stream-part: 'master'
21        - test:
22            branch: 'stable/test'
23            repo-stream-part: 'stable.test'
24        - '1606':
25            branch: 'stable/1606'
26            repo-stream-part: 'stable.1606'
27        - '1609':
28            branch: 'stable/1609'
29            repo-stream-part: 'stable.1609'
30    type:
31        - short
32        - long
33
34- project:
35    name: vpp-misc
36    jobs:
37        - 'vpp-csit-verify-virl-{stream}'
38        - 'vpp-csit-verify-hw-perf-{stream}-{type}'
39    project: 'vpp'
40    stream:
41        - master:
42            branch: 'master'
43            repo-stream-part: 'master'
44        - test:
45            branch: 'stable/test'
46            repo-stream-part: 'stable.test'
47        - '1606':
48            branch: 'stable/1606'
49            repo-stream-part: 'stable.1606'
50        - '1609':
51            branch: 'stable/1609'
52            repo-stream-part: 'stable.1609'
53
54    os: ubuntu1404
55    type:
56        - all
57        - short
58        - long
59
60- job-template:
61    name: 'vpp-verify-{stream}-{os}'
62
63    project-type: freestyle
64    node: 'verify-{os}'
65    concurrent: true
66
67    logrotate:
68        daysToKeep: '{build-days-to-keep}'
69        numToKeep: '{build-num-to-keep}'
70        artifactDaysToKeep: '{build-artifact-days-to-keep}'
71        artifactNumToKeep: '{build-artifact-num-to-keep}'
72
73    parameters:
74        - project-parameter:
75            project: '{project}'
76        - gerrit-parameter:
77            branch: '{branch}'
78        - os-parameter:
79            os: '{os}'
80
81    scm:
82        - gerrit-trigger-scm:
83            credentials-id: '{ssh-credentials}'
84            refspec: '$GERRIT_REFSPEC'
85            choosing-strategy: 'gerrit'
86
87    wrappers:
88        - ssh-agent-credentials:
89            users:
90                - '{ssh-credentials}'
91
92    triggers:
93        - gerrit-trigger-patch-submitted:
94            name: '{project}'
95            branch: '{branch}'
96
97    builders:
98        - shell:
99            !include-raw-escape: include-raw-vpp-checkstyle.sh
100        - shell:
101            !include-raw-escape: include-raw-vpp-build.sh
102
103- job-template:
104    name: 'vpp-verify-image-{stream}-{os}'
105
106    project-type: freestyle
107    node: 'verify-image-{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
124    scm:
125        - gerrit-trigger-scm:
126            credentials-id: '{ssh-credentials}'
127            refspec: '$GERRIT_REFSPEC'
128            choosing-strategy: 'gerrit'
129
130    wrappers:
131        - ssh-agent-credentials:
132            users:
133                - '{ssh-credentials}'
134
135    triggers:
136        - gerrit:
137            server-name: 'Primary'
138            trigger-on:
139                - comment-added-contains-event:
140                    comment-contains-value: 'verify-images'
141            projects:
142              - project-compare-type: 'ANT'
143                project-pattern: '{project}'
144                branches:
145                  - branch-compare-type: 'ANT'
146                    branch-pattern: '**/{branch}'
147            skip-vote:
148                successful: true
149                failed: true
150                unstable: true
151                notbuilt: true
152
153    builders:
154        - shell:
155            !include-raw-escape: include-raw-vpp-checkstyle.sh
156        - shell:
157            !include-raw-escape: include-raw-vpp-build.sh
158
159- job-template:
160    name: 'vpp-merge-{stream}-{os}'
161
162    project-type: freestyle
163    node: 'merge-{os}'
164
165    logrotate:
166        daysToKeep: '{build-days-to-keep}'
167        numToKeep: '{build-num-to-keep}'
168        artifactDaysToKeep: '{build-artifact-days-to-keep}'
169        artifactNumToKeep: '{build-artifact-num-to-keep}'
170
171    parameters:
172        - project-parameter:
173            project: '{project}'
174        - gerrit-parameter:
175            branch: '{branch}'
176        - os-parameter:
177            os: '{os}'
178        - maven-project-parameter:
179            maven: '{mvn33}'
180        - repo-name-parameter:
181            repo-name: '{repo-stream-part}.{repo-os-part}'
182
183    scm:
184        - gerrit-trigger-scm:
185            credentials-id: '{ssh-credentials}'
186            refspec: ''
187            choosing-strategy: 'default'
188
189    wrappers:
190        - ssh-agent-credentials:
191            users:
192                - '{ssh-credentials}'
193
194    triggers:
195        - gerrit-trigger-patch-merged:
196            name: '{project}'
197            branch: '{branch}'
198
199    builders:
200        - shell:
201            !include-raw-escape: include-raw-vpp-checkstyle.sh
202        - shell:
203            !include-raw-escape: include-raw-vpp-build.sh
204        - maven-target:
205            maven-version: '{mvn33}'
206            goals: '--version'
207            settings: 'vpp-settings'
208            settings-type: cfp
209            global-settings: 'global-settings'
210            global-settings-type: cfp
211        - provide-maven-settings:
212            settings-file: 'vpp-settings'
213            global-settings-file: 'global-settings'
214        - shell:
215            !include-raw-escape: include-raw-vpp-maven-push.sh
216    publishers:
217        - archive:
218            artifacts: 'build-root/*.rpm,build-root/*.deb'
219            allow-empty: 'true'
220            fingerprint: false
221            only-if-success: true
222            default-excludes: false
223
224- job-template:
225    name: 'vpp-csit-verify-virl-{stream}'
226
227    project-type: freestyle
228    node: 'verify-{os}'
229    concurrent: true
230
231    logrotate:
232        daysToKeep: '{build-days-to-keep}'
233        numToKeep: '{build-num-to-keep}'
234        artifactDaysToKeep: '{build-artifact-days-to-keep}'
235        artifactNumToKeep: '{build-artifact-num-to-keep}'
236
237    parameters:
238        - project-parameter:
239            project: '{project}'
240        - gerrit-parameter:
241            branch: '{branch}'
242        - os-parameter:
243            os: '{os}'
244
245    scm:
246        - gerrit-trigger-scm:
247            credentials-id: '{ssh-credentials}'
248            refspec: '$GERRIT_REFSPEC'
249            choosing-strategy: 'gerrit'
250
251    wrappers:
252        - timestamps
253        - ssh-agent-credentials:
254            users:
255                - '{ssh-credentials}'
256
257    triggers:
258        - gerrit-trigger-patch-submitted:
259            name: '{project}'
260            branch: '{branch}'
261
262    builders:
263        - shell:
264            !include-raw-escape: include-raw-vpp-checkstyle.sh
265        - shell:
266            !include-raw-escape: include-raw-vpp-build.sh
267        - shell:
268            !include-raw-escape: include-raw-vpp-csit-functional.sh
269
270    publishers:
271        - archive-artifacts:
272            artifacts: 'csit/report.html, csit/log.html, csit/output.xml'
273            latest-only: false
274
275        - robot-report:
276            output-path: 'csit'
277
278- job-template:
279    name: 'vpp-csit-verify-hw-perf-{stream}-{type}'
280
281    project-type: freestyle
282    node: 'verify-{os}'
283    concurrent: false
284
285    logrotate:
286        daysToKeep: '{build-days-to-keep}'
287        numToKeep: '{build-num-to-keep}'
288        artifactDaysToKeep: '{build-artifact-days-to-keep}'
289        artifactNumToKeep: '{build-artifact-num-to-keep}'
290
291    parameters:
292        - project-parameter:
293            project: '{project}'
294        - gerrit-parameter:
295            branch: '{branch}'
296        - os-parameter:
297            os: '{os}'
298        - type-parameter:
299            type: '{type}'
300
301    scm:
302        - gerrit-trigger-scm:
303            credentials-id: '{ssh-credentials}'
304            refspec: '$GERRIT_REFSPEC'
305            choosing-strategy: 'gerrit'
306
307    wrappers:
308        - timestamps
309        - ssh-agent-credentials:
310            users:
311                - '{ssh-credentials}'
312
313    triggers:
314        - gerrit-trigger-manually-triggered:
315            comment-trigger-value: 'verify-perf-{type}'
316            name: '{project}'
317            branch: '{branch}'
318
319    builders:
320        - shell:
321            !include-raw-escape: include-raw-vpp-build.sh
322        - shell:
323            !include-raw-escape: include-raw-vpp-csit-verify-perf.sh
324
325    publishers:
326        - archive-artifacts:
327            artifacts: 'csit/report.html, csit/log.html, csit/output.xml'
328            latest-only: false
329
330        - robot-report:
331            output-path: 'csit'
332
333- parameter:
334    name: type-parameter
335
336    parameters:
337        - string:
338            name: TYPE
339            default: '{type}'
340            description: "TYPE parameter if not given by trigger"
341
342- job-template:
343    name: 'vpp-docs-1609'
344
345    project-type: freestyle
346    node: 'verify-ubuntu1604'
347    concurrent: true
348
349    logrotate:
350        daysToKeep: '{build-days-to-keep}'
351        numToKeep: '{build-num-to-keep}'
352        artifactDaysToKeep: '{build-artifact-days-to-keep}'
353        artifactNumToKeep: '{build-artifact-num-to-keep}'
354
355    parameters:
356        - project-parameter:
357            project: '{project}'
358        - gerrit-parameter:
359            branch: 'stable/1609'
360        - os-parameter:
361            os: 'ubuntu1604'
362
363    scm:
364        - gerrit-trigger-scm:
365            credentials-id: '{ssh-credentials}'
366            refspec: ''
367            choosing-strategy: 'default'
368
369    wrappers:
370        - ssh-agent-credentials:
371            users:
372                - '{ssh-credentials}'
373
374    triggers:
375        - gerrit:
376            server-name: 'Primary'
377            trigger-on:
378                - comment-added-contains-event:
379                    comment-contains-value: 'run-docs'
380            projects:
381              - project-compare-type: 'ANT'
382                project-pattern: '{project}'
383                branches:
384                  - branch-compare-type: 'ANT'
385                    branch-pattern: '**/stable/1609'
386            skip-vote:
387                successful: true
388                failed: true
389                unstable: true
390                notbuilt: true
391
392    builders:
393        - maven-target:
394            maven-version: '{mvn33}'
395            goals: '--version'
396            settings: 'vpp-settings'
397            settings-type: cfp
398            global-settings: 'global-settings'
399            global-settings-type: cfp
400        - provide-maven-settings:
401            settings-file: 'vpp-settings'
402            global-settings-file: 'global-settings'
403        - shell:
404            !include-raw-escape: include-raw-vpp-docs.sh
405
406