Merge "Remove deprecated vagrant configuration"
[ci-management.git] / jjb / nsh_sfc / nsh_sfc.yaml
1 - project:
2     name: nsh_sfc
3     jobs:
4         - 'nsh_sfc-verify-{stream}-{os}'
5         - 'nsh_sfc-merge-{stream}-{os}'
6         - 'nsh_sfc-integration-{stream}-{os}'
7         - 'nsh_sfc-verify-image-{stream}-{os}'
8         - 'nsh_sfc-verify-docs-{stream}'
9         - 'nsh_sfc-merge-docs-{stream}'
10
11     project: 'nsh_sfc'
12     os:
13         - ubuntu1404:
14             repo-os-part: 'ubuntu.trusty.main'
15         - ubuntu1604:
16             repo-os-part: 'ubuntu.xenial.main'
17         - centos7:
18             repo-os-part: 'centos7'
19     stream:
20         - master:
21             branch: 'master'
22             repo-stream-part: 'master'
23         - '1609':
24             branch: 'stable/1609'
25             repo-stream-part: 'stable.1609'
26         - '1701':
27             branch: 'stable/1701'
28             repo-stream-part: 'stable.1701'
29
30 - job-template:
31     name: 'nsh_sfc-verify-{stream}-{os}'
32
33     project-type: freestyle
34     node: '{os}-basebuild-4c-4g'
35     concurrent: true
36
37     logrotate:
38         daysToKeep: '{build-days-to-keep}'
39         numToKeep: '{build-num-to-keep}'
40         artifactDaysToKeep: '{build-artifact-days-to-keep}'
41         artifactNumToKeep: '{build-artifact-num-to-keep}'
42
43     parameters:
44         - project-parameter:
45             project: '{project}'
46         - gerrit-parameter:
47             branch: '{branch}'
48         - os-parameter:
49             os: '{os}'
50         - repo-name-parameter:
51             repo-name: '{repo-stream-part}.{repo-os-part}'
52         - maven-exec:
53             maven-version: 'mvn33-new'
54
55     scm:
56         - gerrit-trigger-scm:
57             credentials-id: 'jenkins-gerrit-credentials'
58             refspec: '$GERRIT_REFSPEC'
59             choosing-strategy: 'gerrit'
60
61     wrappers:
62         - fdio-infra-wrappers:
63             build-timeout: '{build-timeout}'
64
65     triggers:
66         - gerrit-trigger-patch-submitted:
67             name: '{project}'
68             branch: '{branch}'
69
70     builders:
71         - maven-target:
72             maven-version: 'mvn33-new'
73             goals: '--version'
74             settings: 'nsh_sfc-settings'
75             settings-type: cfp
76             global-settings: 'global-settings'
77             global-settings-type: cfp
78         - config-file-provider:
79             files:
80               - file-id: 'nsh_sfc-settings'
81                 variable: 'SETTINGS_FILE'
82               - file-id: 'global-settings'
83                 variable: 'GLOBAL_SETTINGS_FILE'
84         - shell:
85             !include-raw-escape: ../scripts/create_maven_env.sh
86         - inject:
87             properties-file: maven_env.txt
88         - shell:
89             !include-raw-escape:
90                 - ../scripts/cleanup_vpp_plugin_dev_env.sh
91                 - ../scripts/setup_vpp_plugin_dev_env.sh
92                 - include-raw-nsh_sfc-build.sh
93                 - ../scripts/cleanup_vpp_plugin_dev_env.sh
94
95     publishers:
96       - fdio-infra-shiplogs:
97           maven-version: 'mvn33-new'
98
99 - job-template:
100     name: 'nsh_sfc-verify-image-{stream}-{os}'
101
102     project-type: freestyle
103     node: '{os}-basebuild-4c-4g'
104     concurrent: true
105
106     logrotate:
107         daysToKeep: '{build-days-to-keep}'
108         numToKeep: '{build-num-to-keep}'
109         artifactDaysToKeep: '{build-artifact-days-to-keep}'
110         artifactNumToKeep: '{build-artifact-num-to-keep}'
111
112     parameters:
113         - project-parameter:
114             project: '{project}'
115         - gerrit-parameter:
116             branch: '{branch}'
117         - os-parameter:
118             os: '{os}'
119         - repo-name-parameter:
120             repo-name: '{repo-stream-part}.{repo-os-part}'
121         - maven-exec:
122             maven-version: 'mvn33-new'
123
124     scm:
125         - gerrit-trigger-scm:
126             credentials-id: 'jenkins-gerrit-credentials'
127             refspec: '$GERRIT_REFSPEC'
128             choosing-strategy: 'gerrit'
129
130     wrappers:
131         - fdio-infra-wrappers:
132             build-timeout: '{build-timeout}'
133
134     triggers:
135         - gerrit:
136             server-name: 'Primary'
137             trigger-on:
138                 - comment-added-contains-event:
139                     comment-contains-value: 'verify-images'
140             projects:
141               - project-compare-type: 'ANT'
142                 project-pattern: '{project}'
143                 branches:
144                   - branch-compare-type: 'ANT'
145                     branch-pattern: '**/{branch}'
146             skip-vote:
147                 successful: true
148                 failed: true
149                 unstable: true
150                 notbuilt: true
151
152     builders:
153         - maven-target:
154             maven-version: 'mvn33-new'
155             goals: '--version'
156             settings: 'nsh_sfc-settings'
157             settings-type: cfp
158             global-settings: 'global-settings'
159             global-settings-type: cfp
160         - config-file-provider:
161             files:
162               - file-id: 'nsh_sfc-settings'
163                 variable: 'SETTINGS_FILE'
164               - file-id: 'global-settings'
165                 variable: 'GLOBAL_SETTINGS_FILE'
166         - shell:
167             !include-raw-escape: ../scripts/create_maven_env.sh
168         - inject:
169             properties-file: maven_env.txt
170         - shell:
171             !include-raw-escape:
172                 - ../scripts/cleanup_vpp_plugin_dev_env.sh
173                 - ../scripts/setup_vpp_plugin_dev_env.sh
174                 - include-raw-nsh_sfc-build.sh
175                 - ../scripts/cleanup_vpp_plugin_dev_env.sh
176     publishers:
177       - fdio-infra-shiplogs:
178           maven-version: 'mvn33-new'
179
180 - job-template:
181     name: 'nsh_sfc-merge-{stream}-{os}'
182
183     project-type: freestyle
184     node: '{os}-basebuild-4c-4g'
185
186     logrotate:
187         daysToKeep: '{build-days-to-keep}'
188         numToKeep: '{build-num-to-keep}'
189         artifactDaysToKeep: '{build-artifact-days-to-keep}'
190         artifactNumToKeep: '{build-artifact-num-to-keep}'
191
192     parameters:
193         - project-parameter:
194             project: '{project}'
195         - gerrit-parameter:
196             branch: '{branch}'
197         - os-parameter:
198             os: '{os}'
199         - maven-exec:
200             maven-version: 'mvn33-new'
201         - repo-name-parameter:
202             repo-name: '{repo-stream-part}.{repo-os-part}'
203
204     scm:
205         - gerrit-trigger-scm:
206             credentials-id: 'jenkins-gerrit-credentials'
207             refspec: ''
208             choosing-strategy: 'default'
209
210     wrappers:
211         - fdio-infra-wrappers:
212             build-timeout: '{build-timeout}'
213
214     triggers:
215         - gerrit-trigger-patch-merged:
216             name: '{project}'
217             branch: '{branch}'
218
219     builders:
220         - maven-target:
221             maven-version: 'mvn33-new'
222             goals: '--version'
223             settings: 'nsh_sfc-settings'
224             settings-type: cfp
225             global-settings: 'global-settings'
226             global-settings-type: cfp
227         - config-file-provider:
228             files:
229               - file-id: 'nsh_sfc-settings'
230                 variable: 'SETTINGS_FILE'
231               - file-id: 'global-settings'
232                 variable: 'GLOBAL_SETTINGS_FILE'
233         - shell:
234             !include-raw-escape: ../scripts/create_maven_env.sh
235         - inject:
236             properties-file: maven_env.txt
237         - shell:
238             !include-raw-escape:
239                 - ../scripts/cleanup_vpp_plugin_dev_env.sh
240                 - ../scripts/setup_vpp_plugin_dev_env.sh
241                 - include-raw-nsh_sfc-build.sh
242                 - ../scripts/cleanup_vpp_plugin_dev_env.sh
243
244     publishers:
245       - fdio-infra-shiplogs:
246           maven-version: 'mvn33-new'
247
248 - job-template:
249     name: 'nsh_sfc-integration-{stream}-{os}'
250
251     project-type: freestyle
252     node: '{os}-basebuild-4c-4g'
253
254     logrotate:
255         daysToKeep: '{build-days-to-keep}'
256         numToKeep: '{build-num-to-keep}'
257         artifactDaysToKeep: '{build-artifact-days-to-keep}'
258         artifactNumToKeep: '{build-artifact-num-to-keep}'
259
260     parameters:
261         - project-parameter:
262             project: '{project}'
263         - gerrit-parameter:
264             branch: '{branch}'
265         - os-parameter:
266             os: '{os}'
267         - maven-exec:
268             maven-version: 'mvn33-new'
269         - repo-name-parameter:
270             repo-name: '{repo-stream-part}.{repo-os-part}'
271
272     scm:
273         - gerrit-trigger-scm:
274             credentials-id: 'jenkins-gerrit-credentials'
275             refspec: ''
276             choosing-strategy: 'default'
277
278     wrappers:
279         - fdio-infra-wrappers:
280             build-timeout: '{build-timeout}'
281
282     triggers:
283         - reverse:
284             jobs: 'vpp-merge-{stream}-{os},nsh_sfc-merge-{stream}-{os}'
285             result: 'success'
286
287     builders:
288         - maven-target:
289             maven-version: 'mvn33-new'
290             goals: '--version'
291             settings: 'nsh_sfc-settings'
292             settings-type: cfp
293             global-settings: 'global-settings'
294             global-settings-type: cfp
295
296         - config-file-provider:
297             files:
298               - file-id: 'nsh_sfc-settings'
299                 variable: 'SETTINGS_FILE'
300               - file-id: 'global-settings'
301                 variable: 'GLOBAL_SETTINGS_FILE'
302         - shell:
303             !include-raw-escape: ../scripts/create_maven_env.sh
304         - inject:
305             properties-file: maven_env.txt
306         - shell:
307             !include-raw-escape:
308                 - ../scripts/cleanup_vpp_plugin_dev_env.sh
309                 - ../scripts/setup_vpp_plugin_dev_env.sh
310                 - include-raw-nsh_sfc-build.sh
311                 - ../scripts/cleanup_vpp_plugin_dev_env.sh
312                 - ../scripts/maven_push_functions.sh
313                 - include-raw-nsh_sfc-pkg-push.sh
314
315     publishers:
316       - fdio-infra-shiplogs:
317           maven-version: 'mvn33-new'
318
319 - job-template:
320     name: 'nsh_sfc-verify-docs-{stream}'
321
322     project-type: freestyle
323     node: ubuntu1604-basebuild-4c-4g
324     concurrent: true
325
326     logrotate:
327         daysToKeep: '{build-days-to-keep}'
328         numToKeep: '{build-num-to-keep}'
329         artifactDaysToKeep: '{build-artifact-days-to-keep}'
330         artifactNumToKeep: '{build-artifact-num-to-keep}'
331
332     parameters:
333         - project-parameter:
334             project: '{project}'
335         - gerrit-parameter:
336             branch: '{branch}'
337         - os-parameter:
338             os: 'ubuntu1604'
339         - maven-exec:
340             maven-version: 'mvn33-new'
341
342     scm:
343         - gerrit-trigger-scm:
344             credentials-id: 'jenkins-gerrit-credentials'
345             refspec: ''
346             choosing-strategy: 'default'
347
348     wrappers:
349         - fdio-infra-wrappers:
350             build-timeout: '{build-timeout}'
351
352     triggers:
353         - gerrit-trigger-patch-submitted:
354             name: '{project}'
355             branch: '{branch}'
356
357     builders:
358         - maven-target:
359             maven-version: 'mvn33-new'
360             goals: '--version'
361             settings: 'vpp-settings'
362             settings-type: cfp
363             global-settings: 'global-settings'
364             global-settings-type: cfp
365         - provide-maven-settings:
366             settings-file: 'vpp-settings'
367             global-settings-file: 'global-settings'
368         - shell:
369             !include-raw-escape: include-raw-nsh_sfc-docs.sh
370
371     publishers:
372       - fdio-infra-shiplogs:
373           maven-version: 'mvn33-new'
374
375 - job-template:
376     name: 'nsh_sfc-merge-docs-{stream}'
377
378     project-type: freestyle
379     node: ubuntu1604-basebuild-4c-4g
380     concurrent: true
381
382     logrotate:
383         daysToKeep: '{build-days-to-keep}'
384         numToKeep: '{build-num-to-keep}'
385         artifactDaysToKeep: '{build-artifact-days-to-keep}'
386         artifactNumToKeep: '{build-artifact-num-to-keep}'
387
388     parameters:
389         - project-parameter:
390             project: '{project}'
391         - gerrit-parameter:
392             branch: '{branch}'
393         - os-parameter:
394             os: 'ubuntu1604'
395         - maven-exec:
396             maven-version: 'mvn33-new'
397
398     scm:
399         - gerrit-trigger-scm:
400             credentials-id: 'jenkins-gerrit-credentials'
401             refspec: ''
402             choosing-strategy: 'default'
403
404     wrappers:
405         - fdio-infra-wrappers:
406             build-timeout: '{build-timeout}'
407
408     triggers:
409         - reverse:
410             jobs: 'nsh_sfc-merge-{stream}-ubuntu1404'
411             result: 'success'
412         - gerrit:
413             server-name: 'Primary'
414             trigger-on:
415                 - comment-added-contains-event:
416                     comment-contains-value: 'run-docs'
417             projects:
418               - project-compare-type: 'ANT'
419                 project-pattern: '{project}'
420                 branches:
421                   - branch-compare-type: 'ANT'
422                     branch-pattern: '**/{branch}'
423             skip-vote:
424                 successful: true
425                 failed: true
426                 unstable: true
427                 notbuilt: true
428
429     builders:
430         - maven-target:
431             maven-version: 'mvn33-new'
432             goals: '--version'
433             settings: 'vpp-settings'
434             settings-type: cfp
435             global-settings: 'global-settings'
436             global-settings-type: cfp
437         - provide-maven-settings:
438             settings-file: 'vpp-settings'
439             global-settings-file: 'global-settings'
440         - shell:
441             !include-raw-escape: include-raw-nsh_sfc-docs.sh
442
443     publishers:
444       - fdio-infra-shiplogs:
445           maven-version: 'mvn33-new'