Add CSIT rls1908 branch
[ci-management.git] / jjb / csit / csit.yaml
1 # Copyright (c) 2019 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 ---
15 - project:
16     name: csit
17     description: 'CSIT Jenkins jobs.'
18
19     jobs:
20       - 'csit-docs-verify-{stream}'
21       - 'csit-docs-merge-{stream_timed}'
22       - 'csit-report-merge-{stream}'
23       - 'csit-report-merge-1901_3'
24       - 'csit-report-merge-1904_2'
25       - 'csit-trending-daily-master'
26
27     project: 'csit'
28     branch: 'master'
29     executor: 'ubuntu1804-us'
30     executor-large: 'ubuntu1804-l'
31     build-artifact-num-to-keep: 10
32     stream_timed:
33       - master:
34           branch: 'master'
35           executor: 'ubuntu1804-us'
36       - '1908':
37           branch: 'rls1908'
38           executor: 'ubuntu1804-us'
39     stream:
40       - master:
41           branch: 'master'
42           executor: 'ubuntu1804-us'
43       - '1901':
44           branch: 'rls1901'
45           executor: 'ubuntu1604-basebuild-4c-4g'
46       - '1904':
47           branch: 'rls1904'
48           executor: 'ubuntu1804-us'
49       - '1908':
50           branch: 'rls1908'
51           executor: 'ubuntu1804-us'
52
53 - project:
54     name: csit-view
55     views:
56       - project-view
57     project-name: csit
58
59
60 - job-template:
61     name: 'csit-docs-verify-{stream}'
62
63     project-type: freestyle
64     node: '{executor}'
65     concurrent: true
66     archive-artifacts: 'resources/tools/doc_gen/csit.docs.tar.gz'
67     allow-empty: 'true'
68     fingerprint: false
69     only-if-success: true
70     default-excludes: false
71
72     build-discarder:
73       daysToKeep: '{build-days-to-keep}'
74       numToKeep: '{build-num-to-keep}'
75       artifactDaysToKeep: '{build-artifact-days-to-keep}'
76       artifactNumToKeep: '{build-artifact-num-to-keep}'
77
78     parameters:
79       - project-parameter:
80           project: '{project}'
81       - gerrit-parameter:
82           branch: '{branch}'
83       - maven-exec:
84           maven-version: 'mvn33-new'
85       - string:
86           name: ARCHIVE_ARTIFACTS
87           default: '{archive-artifacts}'
88           description: Artifacts to archive to the logs server.
89
90     scm:
91       - gerrit-trigger-scm:
92           credentials-id: 'jenkins-gerrit-credentials'
93           refspec: '$GERRIT_REFSPEC'
94           choosing-strategy: 'gerrit'
95
96     wrappers:
97       - fdio-infra-wrappers-non-activity-timeout:
98           build-timeout: '{build-timeout}'
99
100     triggers:
101       - gerrit-trigger-patch-submitted:
102           name: '{project}'
103           branch: '{branch}'
104
105     builders:
106       - maven-target:
107           maven-version: 'mvn33-new'
108           goals: '--version'
109           settings: 'csit-settings'
110           settings-type: cfp
111           global-settings: 'global-settings'
112           global-settings-type: cfp
113       - provide-maven-settings:
114           settings-file: 'csit-settings'
115           global-settings-file: 'global-settings'
116       - shell:
117           !include-raw-escape: include-raw-csit-docs.sh
118
119     publishers:
120       - fdio-infra-shiplogs:
121           maven-version: 'mvn33-new'
122
123 - job-template:
124     name: 'csit-docs-merge-{stream_timed}'
125
126     project-type: freestyle
127     node: '{executor}'
128     concurrent: true
129     allow-empty: 'true'
130     fingerprint: false
131     only-if-success: true
132     default-excludes: false
133
134     build-discarder:
135       daysToKeep: '{build-days-to-keep}'
136       numToKeep: '{build-num-to-keep}'
137       artifactDaysToKeep: '{build-artifact-days-to-keep}'
138       artifactNumToKeep: '{build-artifact-num-to-keep}'
139
140     parameters:
141       - project-parameter:
142           project: '{project}'
143       - gerrit-parameter:
144           branch: '{branch}'
145       - maven-exec:
146           maven-version: 'mvn33-new'
147       - string:
148           name: ARCHIVE_ARTIFACTS
149           default: '{archive-artifacts}'
150           description: Artifacts to archive to the logs server.
151
152     scm:
153       - gerrit-trigger-scm:
154           credentials-id: 'jenkins-gerrit-credentials'
155           refspec: ''
156           choosing-strategy: 'default'
157
158     wrappers:
159       - fdio-infra-wrappers-non-activity-timeout:
160           build-timeout: '{build-timeout}'
161
162     triggers:
163       - reverse:
164           jobs: 'csit-vpp-verify-{stream_timed}-ubuntu1604-weekly'
165           result: 'success'
166       - gerrit:
167           server-name: 'Primary'
168           trigger-on:
169             - comment-added-contains-event:
170                 comment-contains-value: 'run-docs'
171           projects:
172             - project-compare-type: 'ANT'
173               project-pattern: '{project}'
174               branches:
175                 - branch-compare-type: 'ANT'
176                   branch-pattern: '**/{branch}'
177           skip-vote:
178             successful: true
179             failed: true
180             unstable: true
181             notbuilt: true
182
183     builders:
184       - maven-target:
185           maven-version: 'mvn33-new'
186           goals: '--version'
187           settings: 'csit-settings'
188           settings-type: cfp
189           global-settings: 'global-settings'
190           global-settings-type: cfp
191       - provide-maven-settings:
192           settings-file: 'csit-settings'
193           global-settings-file: 'global-settings'
194       - shell:
195           !include-raw-escape: include-raw-csit-docs.sh
196
197     publishers:
198       - fdio-infra-shiplogs:
199           maven-version: 'mvn33-new'
200
201 - job-template:
202     name: 'csit-report-merge-{stream}'
203
204     project-type: freestyle
205     node: '{executor-large}'
206     concurrent: false
207     allow-empty: 'true'
208     fingerprint: false
209     only-if-success: true
210     default-excludes: false
211
212     build-discarder:
213       daysToKeep: '{build-days-to-keep}'
214       numToKeep: '{build-num-to-keep}'
215       artifactDaysToKeep: '{build-artifact-days-to-keep}'
216       artifactNumToKeep: '{build-artifact-num-to-keep}'
217
218     parameters:
219       - project-parameter:
220           project: '{project}'
221       - gerrit-parameter:
222           branch: '{branch}'
223       - maven-exec:
224           maven-version: 'mvn33-new'
225       - string:
226           name: ARCHIVE_ARTIFACTS
227           default: '{archive-artifacts}'
228           description: Artifacts to archive to the logs server.
229
230     scm:
231       - gerrit-trigger-scm:
232           credentials-id: 'jenkins-gerrit-credentials'
233           refspec: '$GERRIT_REFSPEC'
234           choosing-strategy: 'default'
235
236     wrappers:
237       - fdio-infra-wrappers-non-activity-timeout:
238           build-timeout: '{build-timeout}'
239
240     triggers:
241       - gerrit:
242           server-name: 'Primary'
243           trigger-on:
244             - comment-added-contains-event:
245                 comment-contains-value: 'run-report'
246           projects:
247             - project-compare-type: 'ANT'
248               project-pattern: '{project}'
249               branches:
250                 - branch-compare-type: 'ANT'
251                   branch-pattern: '**/{branch}'
252           skip-vote:
253             successful: true
254             failed: true
255             unstable: true
256             notbuilt: true
257
258     builders:
259       - maven-target:
260           maven-version: 'mvn33-new'
261           goals: '--version'
262           settings: 'csit-settings'
263           settings-type: cfp
264           global-settings: 'global-settings'
265           global-settings-type: cfp
266       - provide-maven-settings:
267           settings-file: 'csit-settings'
268           global-settings-file: 'global-settings'
269       - shell:
270           !include-raw-escape: include-raw-csit-report.sh
271
272     publishers:
273       - fdio-infra-shiplogs:
274           maven-version: 'mvn33-new'
275
276 - job-template:
277     name: 'csit-report-merge-1901_3'
278
279     project-type: freestyle
280     node: '{executor-large}'
281     concurrent: false
282     allow-empty: 'true'
283     fingerprint: false
284     only-if-success: true
285     default-excludes: false
286
287     build-discarder:
288       daysToKeep: '{build-days-to-keep}'
289       numToKeep: '{build-num-to-keep}'
290       artifactDaysToKeep: '{build-artifact-days-to-keep}'
291       artifactNumToKeep: '{build-artifact-num-to-keep}'
292
293     parameters:
294       - project-parameter:
295           project: '{project}'
296       - gerrit-parameter:
297           branch: 'rls1901_3'
298       - maven-exec:
299           maven-version: 'mvn33-new'
300       - string:
301           name: ARCHIVE_ARTIFACTS
302           default: '{archive-artifacts}'
303           description: Artifacts to archive to the logs server.
304
305     scm:
306       - gerrit-trigger-scm:
307           credentials-id: 'jenkins-gerrit-credentials'
308           refspec: '$GERRIT_REFSPEC'
309           choosing-strategy: 'default'
310
311     wrappers:
312       - fdio-infra-wrappers-non-activity-timeout:
313           build-timeout: '{build-timeout}'
314
315     triggers:
316       - gerrit:
317           server-name: 'Primary'
318           trigger-on:
319             - comment-added-contains-event:
320                 comment-contains-value: 'run-report'
321           projects:
322             - project-compare-type: 'ANT'
323               project-pattern: '{project}'
324               branches:
325                 - branch-compare-type: 'ANT'
326                   branch-pattern: '**/rls1901_3'
327           skip-vote:
328             successful: true
329             failed: true
330             unstable: true
331             notbuilt: true
332
333     builders:
334       - maven-target:
335           maven-version: 'mvn33-new'
336           goals: '--version'
337           settings: 'csit-settings'
338           settings-type: cfp
339           global-settings: 'global-settings'
340           global-settings-type: cfp
341       - provide-maven-settings:
342           settings-file: 'csit-settings'
343           global-settings-file: 'global-settings'
344       - shell:
345           !include-raw-escape: include-raw-csit-report.sh
346
347     publishers:
348       - fdio-infra-shiplogs:
349           maven-version: 'mvn33-new'
350
351 - job-template:
352     name: 'csit-report-merge-1904_2'
353
354     project-type: freestyle
355     node: '{executor-large}'
356     concurrent: false
357     allow-empty: 'true'
358     fingerprint: false
359     only-if-success: true
360     default-excludes: false
361
362     build-discarder:
363       daysToKeep: '{build-days-to-keep}'
364       numToKeep: '{build-num-to-keep}'
365       artifactDaysToKeep: '{build-artifact-days-to-keep}'
366       artifactNumToKeep: '{build-artifact-num-to-keep}'
367
368     parameters:
369       - project-parameter:
370           project: '{project}'
371       - gerrit-parameter:
372           branch: 'rls1904_2'
373       - maven-exec:
374           maven-version: 'mvn33-new'
375       - string:
376           name: ARCHIVE_ARTIFACTS
377           default: '{archive-artifacts}'
378           description: Artifacts to archive to the logs server.
379
380     scm:
381       - gerrit-trigger-scm:
382           credentials-id: 'jenkins-gerrit-credentials'
383           refspec: '$GERRIT_REFSPEC'
384           choosing-strategy: 'default'
385
386     wrappers:
387       - fdio-infra-wrappers-non-activity-timeout:
388           build-timeout: '{build-timeout}'
389
390     triggers:
391       - gerrit:
392           server-name: 'Primary'
393           trigger-on:
394             - comment-added-contains-event:
395                 comment-contains-value: 'run-report'
396           projects:
397             - project-compare-type: 'ANT'
398               project-pattern: '{project}'
399               branches:
400                 - branch-compare-type: 'ANT'
401                   branch-pattern: '**/rls1904_2'
402           skip-vote:
403             successful: true
404             failed: true
405             unstable: true
406             notbuilt: true
407
408     builders:
409       - maven-target:
410           maven-version: 'mvn33-new'
411           goals: '--version'
412           settings: 'csit-settings'
413           settings-type: cfp
414           global-settings: 'global-settings'
415           global-settings-type: cfp
416       - provide-maven-settings:
417           settings-file: 'csit-settings'
418           global-settings-file: 'global-settings'
419       - shell:
420           !include-raw-escape: include-raw-csit-report.sh
421
422     publishers:
423       - fdio-infra-shiplogs:
424           maven-version: 'mvn33-new'
425
426 - job-template:
427     name: 'csit-trending-daily-master'
428
429     project-type: freestyle
430     node: '{executor-large}'
431     concurrent: false
432
433     build-discarder:
434       daysToKeep: '{build-days-to-keep}'
435       numToKeep: '{build-num-to-keep}'
436       artifactDaysToKeep: '{build-artifact-days-to-keep}'
437       artifactNumToKeep: '{build-artifact-num-to-keep}'
438
439     parameters:
440       - project-parameter:
441           project: '{project}'
442       - gerrit-parameter:
443           branch: '{branch}'
444       - maven-exec:
445           maven-version: 'mvn33-new'
446
447     scm:
448       - gerrit-trigger-scm:
449           credentials-id: 'jenkins-gerrit-credentials'
450           refspec: ''
451           choosing-strategy: 'default'
452
453     wrappers:
454       - fdio-infra-wrappers-non-activity-timeout:
455           build-timeout: '{build-timeout}'
456
457     triggers:
458       - timed: '0 2,14 * * *'
459
460     builders:
461       - maven-target:
462           maven-version: 'mvn33-new'
463           goals: '--version'
464           settings: 'csit-settings'
465           settings-type: cfp
466           global-settings: 'global-settings'
467           global-settings-type: cfp
468       - provide-maven-settings:
469           settings-file: 'csit-settings'
470           global-settings-file: 'global-settings'
471       - shell:
472           !include-raw-escape: include-raw-csit-cpta.sh
473
474     publishers:
475       - email-ext:
476           # yamllint disable-line rule:line-length
477           recipients: 'tifrank@cisco.com, csit-report+int+616+181919729795594561@lists.fd.io'
478           reply-to: ''
479           content-type: 'text'
480           subject: 'Failed tests as of  $BUILD_TIMESTAMP'
481           # yamllint disable-line rule:line-length
482           body: |
483                 Following tests failed in the last trending job runs, listed per testbed type.
484
485                 ${{FILE,path="build-root/docs/deploy-site/src/site/resources/trending/_static/vpp/trending-failed-tests.txt"}}
486
487           always: true
488           failure: false
489
490       - fdio-infra-shiplogs:
491           maven-version: 'mvn33-new'
492
493 - project:
494     name: csit-info
495     project-name: csit
496     jobs:
497       - gerrit-info-yaml-verify
498     build-node: centos7-builder-4c-4g
499     project: csit
500     branch: master