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