CSIT: Remove maven-target from trending
[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     executor-large: 'ubuntu1804-l'
31     build-artifact-num-to-keep: 10
32     stream_timed:
33       - master:
34           branch: 'master'
35           executor: 'ubuntu1804-us'
36       - '1904':
37           branch: 'rls1904'
38           executor: 'ubuntu1804-us'
39     stream:
40       - master:
41           branch: 'master'
42           executor: 'ubuntu1804-us'
43       - '1810':
44           branch: 'rls1810'
45           executor: 'ubuntu1604-basebuild-4c-4g'
46       - '1901':
47           branch: 'rls1901'
48           executor: 'ubuntu1604-basebuild-4c-4g'
49       - '1904':
50           branch: 'rls1904'
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: 'ubuntu1604-basebuild-8c-32g'
206     concurrent: false
207     archive-artifacts: 'resources/tools/presentation/csit.report.tar.gz'
208     allow-empty: 'true'
209     fingerprint: false
210     only-if-success: true
211     default-excludes: false
212
213     build-discarder:
214       daysToKeep: '{build-days-to-keep}'
215       numToKeep: '{build-num-to-keep}'
216       artifactDaysToKeep: '{build-artifact-days-to-keep}'
217       artifactNumToKeep: '{build-artifact-num-to-keep}'
218
219     parameters:
220       - project-parameter:
221           project: '{project}'
222       - gerrit-parameter:
223           branch: '{branch}'
224       - maven-exec:
225           maven-version: 'mvn33-new'
226       - string:
227           name: ARCHIVE_ARTIFACTS
228           default: '{archive-artifacts}'
229           description: Artifacts to archive to the logs server.
230
231     scm:
232       - gerrit-trigger-scm:
233           credentials-id: 'jenkins-gerrit-credentials'
234           refspec: '$GERRIT_REFSPEC'
235           choosing-strategy: 'default'
236
237     wrappers:
238       - fdio-infra-wrappers-non-activity-timeout:
239           build-timeout: '{build-timeout}'
240
241     triggers:
242       - gerrit:
243           server-name: 'Primary'
244           trigger-on:
245             - comment-added-contains-event:
246                 comment-contains-value: 'run-report'
247           projects:
248             - project-compare-type: 'ANT'
249               project-pattern: '{project}'
250               branches:
251                 - branch-compare-type: 'ANT'
252                   branch-pattern: '**/{branch}'
253           skip-vote:
254             successful: true
255             failed: true
256             unstable: true
257             notbuilt: true
258
259     builders:
260       - maven-target:
261           maven-version: 'mvn33-new'
262           goals: '--version'
263           settings: 'csit-settings'
264           settings-type: cfp
265           global-settings: 'global-settings'
266           global-settings-type: cfp
267       - provide-maven-settings:
268           settings-file: 'csit-settings'
269           global-settings-file: 'global-settings'
270       - shell:
271           !include-raw-escape: include-raw-csit-report.sh
272
273     publishers:
274       - fdio-infra-shiplogs:
275           maven-version: 'mvn33-new'
276
277 - job-template:
278     name: 'csit-report-merge-1901_2'
279
280     project-type: freestyle
281     node: 'ubuntu1604-basebuild-8c-32g'
282     concurrent: false
283     archive-artifacts: 'resources/tools/presentation/csit.report.tar.gz'
284     allow-empty: 'true'
285     fingerprint: false
286     only-if-success: true
287     default-excludes: false
288
289     build-discarder:
290       daysToKeep: '{build-days-to-keep}'
291       numToKeep: '{build-num-to-keep}'
292       artifactDaysToKeep: '{build-artifact-days-to-keep}'
293       artifactNumToKeep: '{build-artifact-num-to-keep}'
294
295     parameters:
296       - project-parameter:
297           project: '{project}'
298       - gerrit-parameter:
299           branch: 'rls1901_2'
300       - maven-exec:
301           maven-version: 'mvn33-new'
302       - string:
303           name: ARCHIVE_ARTIFACTS
304           default: '{archive-artifacts}'
305           description: Artifacts to archive to the logs server.
306
307     scm:
308       - gerrit-trigger-scm:
309           credentials-id: 'jenkins-gerrit-credentials'
310           refspec: '$GERRIT_REFSPEC'
311           choosing-strategy: 'default'
312
313     wrappers:
314       - fdio-infra-wrappers-non-activity-timeout:
315           build-timeout: '{build-timeout}'
316
317     triggers:
318       - gerrit:
319           server-name: 'Primary'
320           trigger-on:
321             - comment-added-contains-event:
322                 comment-contains-value: 'run-report'
323           projects:
324             - project-compare-type: 'ANT'
325               project-pattern: '{project}'
326               branches:
327                 - branch-compare-type: 'ANT'
328                   branch-pattern: '**/rls1901_2'
329           skip-vote:
330             successful: true
331             failed: true
332             unstable: true
333             notbuilt: true
334
335     builders:
336       - maven-target:
337           maven-version: 'mvn33-new'
338           goals: '--version'
339           settings: 'csit-settings'
340           settings-type: cfp
341           global-settings: 'global-settings'
342           global-settings-type: cfp
343       - provide-maven-settings:
344           settings-file: 'csit-settings'
345           global-settings-file: 'global-settings'
346       - shell:
347           !include-raw-escape: include-raw-csit-report.sh
348
349     publishers:
350       - fdio-infra-shiplogs:
351           maven-version: 'mvn33-new'
352
353 - job-template:
354     name: 'csit-report-merge-1904_1'
355
356     project-type: freestyle
357     node: 'ubuntu1604-basebuild-8c-32g'
358     concurrent: false
359     archive-artifacts: 'resources/tools/presentation/csit.report.tar.gz'
360     allow-empty: 'true'
361     fingerprint: false
362     only-if-success: true
363     default-excludes: false
364
365     build-discarder:
366       daysToKeep: '{build-days-to-keep}'
367       numToKeep: '{build-num-to-keep}'
368       artifactDaysToKeep: '{build-artifact-days-to-keep}'
369       artifactNumToKeep: '{build-artifact-num-to-keep}'
370
371     parameters:
372       - project-parameter:
373           project: '{project}'
374       - gerrit-parameter:
375           branch: 'rls1904_1'
376       - maven-exec:
377           maven-version: 'mvn33-new'
378       - string:
379           name: ARCHIVE_ARTIFACTS
380           default: '{archive-artifacts}'
381           description: Artifacts to archive to the logs server.
382
383     scm:
384       - gerrit-trigger-scm:
385           credentials-id: 'jenkins-gerrit-credentials'
386           refspec: '$GERRIT_REFSPEC'
387           choosing-strategy: 'default'
388
389     wrappers:
390       - fdio-infra-wrappers-non-activity-timeout:
391           build-timeout: '{build-timeout}'
392
393     triggers:
394       - gerrit:
395           server-name: 'Primary'
396           trigger-on:
397             - comment-added-contains-event:
398                 comment-contains-value: 'run-report'
399           projects:
400             - project-compare-type: 'ANT'
401               project-pattern: '{project}'
402               branches:
403                 - branch-compare-type: 'ANT'
404                   branch-pattern: '**/rls1904_1'
405           skip-vote:
406             successful: true
407             failed: true
408             unstable: true
409             notbuilt: true
410
411     builders:
412       - maven-target:
413           maven-version: 'mvn33-new'
414           goals: '--version'
415           settings: 'csit-settings'
416           settings-type: cfp
417           global-settings: 'global-settings'
418           global-settings-type: cfp
419       - provide-maven-settings:
420           settings-file: 'csit-settings'
421           global-settings-file: 'global-settings'
422       - shell:
423           !include-raw-escape: include-raw-csit-report.sh
424
425     publishers:
426       - fdio-infra-shiplogs:
427           maven-version: 'mvn33-new'
428
429 - job-template:
430     name: 'csit-trending-daily-master'
431
432     project-type: freestyle
433     node: '{executor-large}'
434     concurrent: false
435
436     build-discarder:
437       daysToKeep: '{build-days-to-keep}'
438       numToKeep: '{build-num-to-keep}'
439       artifactDaysToKeep: '{build-artifact-days-to-keep}'
440       artifactNumToKeep: '{build-artifact-num-to-keep}'
441
442     parameters:
443       - project-parameter:
444           project: '{project}'
445       - gerrit-parameter:
446           branch: '{branch}'
447       - maven-exec:
448           maven-version: 'mvn33-new'
449
450     scm:
451       - gerrit-trigger-scm:
452           credentials-id: 'jenkins-gerrit-credentials'
453           refspec: ''
454           choosing-strategy: 'default'
455
456     wrappers:
457       - fdio-infra-wrappers-non-activity-timeout:
458           build-timeout: '{build-timeout}'
459
460     triggers:
461       - timed: '0 2,14 * * *'
462
463     builders:
464       - provide-maven-settings:
465           settings-file: 'csit-settings'
466           global-settings-file: 'global-settings'
467       - shell:
468           !include-raw-escape: include-raw-csit-cpta.sh
469
470     publishers:
471       - email-ext:
472           # yamllint disable-line rule:line-length
473           recipients: 'tifrank@cisco.com, csit-report+int+616+181919729795594561@lists.fd.io'
474           reply-to: ''
475           content-type: 'text'
476           subject: 'Failed tests as of  $BUILD_TIMESTAMP'
477           # yamllint disable-line rule:line-length
478           body: |
479                 Following tests failed in the last trending job runs, listed per testbed type.
480
481                 ${{FILE,path="build-root/docs/deploy-site/src/site/resources/trending/_static/vpp/trending-failed-tests.txt"}}
482
483           always: true
484           failure: false
485
486       - fdio-infra-shiplogs:
487           maven-version: 'mvn33-new'
488
489 - project:
490     name: csit-info
491     project-name: csit
492     jobs:
493       - gerrit-info-yaml-verify
494     build-node: centos7-builder-4c-4g
495     project: csit
496     branch: master