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