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