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