Add CSIT rls2005 branch
[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
24     project: 'csit'
25     branch: 'master'
26     executor: 'ubuntu1804-us'
27     executor-large: 'ubuntu1804-l'
28     build-artifact-num-to-keep: 10
29     stream:
30       - master:
31           branch: 'master'
32       - '1908_2':
33           branch: 'rls1908_2'
34       - '2001':
35           branch: 'rls2001'
36       - '2005':
37           branch: 'rls2005'
38
39 - project:
40     name: csit-view
41     views:
42       - project-view
43     project-name: csit
44
45 - job-template:
46     name: 'csit-docs-merge-{stream}'
47
48     project-type: freestyle
49     node: '{executor}'
50     concurrent: true
51     allow-empty: 'true'
52     fingerprint: false
53     only-if-success: true
54     default-excludes: false
55
56     build-discarder:
57       daysToKeep: '{build-days-to-keep}'
58       numToKeep: '{build-num-to-keep}'
59       artifactDaysToKeep: '{build-artifact-days-to-keep}'
60       artifactNumToKeep: '{build-artifact-num-to-keep}'
61
62     parameters:
63       - project-parameter:
64           project: '{project}'
65       - gerrit-parameter:
66           branch: '{branch}'
67       - maven-exec:
68           maven-version: 'mvn33-new'
69       - string:
70           name: ARCHIVE_ARTIFACTS
71           default: '{archive-artifacts}'
72           description: Artifacts to archive to the logs server.
73
74     scm:
75       - gerrit-trigger-scm:
76           credentials-id: 'jenkins-gerrit-credentials'
77           refspec: ''
78           choosing-strategy: 'default'
79
80     wrappers:
81       - fdio-infra-wrappers-non-activity-timeout:
82           build-timeout: '{build-timeout}'
83
84     triggers:
85       - reverse:
86           jobs: 'csit-vpp-device-{stream}-ubuntu1804-1n-skx-weekly'
87           result: 'success'
88       - gerrit:
89           server-name: 'Primary'
90           trigger-on:
91             - comment-added-contains-event:
92                 comment-contains-value: 'run-docs'
93           projects:
94             - project-compare-type: 'ANT'
95               project-pattern: '{project}'
96               branches:
97                 - branch-compare-type: 'ANT'
98                   branch-pattern: '**/{branch}'
99           skip-vote:
100             successful: true
101             failed: true
102             unstable: true
103             notbuilt: true
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:
118           - ../scripts/csit/docs.sh
119
120     publishers:
121       - fdio-infra-shiplogs:
122           maven-version: 'mvn33-new'
123
124 - job-template:
125     name: 'csit-report-merge-{stream}'
126
127     project-type: freestyle
128     node: '{executor-large}'
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       - string:
149           name: ARCHIVE_ARTIFACTS
150           default: '{archive-artifacts}'
151           description: Artifacts to archive to the logs server.
152
153     scm:
154       - gerrit-trigger-scm:
155           credentials-id: 'jenkins-gerrit-credentials'
156           refspec: '$GERRIT_REFSPEC'
157           choosing-strategy: 'default'
158
159     wrappers:
160       - fdio-infra-wrappers-non-activity-timeout:
161           build-timeout: '{build-timeout}'
162
163     triggers:
164       - gerrit:
165           server-name: 'Primary'
166           trigger-on:
167             - comment-added-contains-event:
168                 comment-contains-value: 'run-report'
169           projects:
170             - project-compare-type: 'ANT'
171               project-pattern: '{project}'
172               branches:
173                 - branch-compare-type: 'ANT'
174                   branch-pattern: '**/{branch}'
175           skip-vote:
176             successful: true
177             failed: true
178             unstable: true
179             notbuilt: true
180
181     builders:
182       - maven-target:
183           maven-version: 'mvn33-new'
184           goals: '--version'
185           settings: 'csit-settings'
186           settings-type: cfp
187           global-settings: 'global-settings'
188           global-settings-type: cfp
189       - provide-maven-settings:
190           settings-file: 'csit-settings'
191           global-settings-file: 'global-settings'
192       - shell:
193           !include-raw-escape:
194           - ../scripts/csit/report.sh
195
196     publishers:
197       - fdio-infra-shiplogs:
198           maven-version: 'mvn33-new'
199
200 - job-template:
201     name: 'csit-trending-daily-master'
202
203     project-type: freestyle
204     node: '{executor-large}'
205     concurrent: false
206
207     build-discarder:
208       daysToKeep: '{build-days-to-keep}'
209       numToKeep: '{build-num-to-keep}'
210       artifactDaysToKeep: '{build-artifact-days-to-keep}'
211       artifactNumToKeep: '{build-artifact-num-to-keep}'
212
213     parameters:
214       - project-parameter:
215           project: '{project}'
216       - gerrit-parameter:
217           branch: '{branch}'
218       - maven-exec:
219           maven-version: 'mvn33-new'
220
221     scm:
222       - gerrit-trigger-scm:
223           credentials-id: 'jenkins-gerrit-credentials'
224           refspec: ''
225           choosing-strategy: 'default'
226
227     wrappers:
228       - fdio-infra-wrappers-non-activity-timeout:
229           build-timeout: '{build-timeout}'
230
231     triggers:
232       - timed: '0 2,14 * * *'
233
234     builders:
235       - maven-target:
236           maven-version: 'mvn33-new'
237           goals: '--version'
238           settings: 'csit-settings'
239           settings-type: cfp
240           global-settings: 'global-settings'
241           global-settings-type: cfp
242       - provide-maven-settings:
243           settings-file: 'csit-settings'
244           global-settings-file: 'global-settings'
245       - shell:
246           !include-raw-escape:
247           - ../scripts/csit/cpta.sh
248
249     publishers:
250       - email-ext:
251           # yamllint disable-line rule:line-length
252           recipients: 'tifrank@cisco.com, csit-report+int+616+181919729795594561@lists.fd.io'
253           reply-to: ''
254           content-type: 'text'
255           subject: 'Failed tests as of  $BUILD_TIMESTAMP'
256           # yamllint disable-line rule:line-length
257           body: |
258                 Following tests failed in the last trending job runs, listed per testbed type.
259
260                 ${{FILE,path="build-root/docs/deploy-site/src/site/resources/trending/_static/vpp/trending-failed-tests.txt"}}
261
262           always: true
263           failure: false
264
265       - email-ext:
266           # yamllint disable-line rule:line-length
267           recipients: 'tifrank@cisco.com, csit-report+int+616+181919729795594561@lists.fd.io'
268           reply-to: ''
269           content-type: 'text'
270           subject: 'Regressions as of  $BUILD_TIMESTAMP'
271           # yamllint disable-line rule:line-length
272           body: |
273                 Following regressions occured in the last trending job runs, listed per testbed type.
274
275                 ${{FILE,path="build-root/docs/deploy-site/src/site/resources/trending/_static/vpp/trending-regressions.txt"}}
276
277           always: true
278           failure: false
279
280       - email-ext:
281           # yamllint disable-line rule:line-length
282           recipients: 'tifrank@cisco.com, csit-report+int+616+181919729795594561@lists.fd.io'
283           reply-to: ''
284           content-type: 'text'
285           subject: 'Progressions as of  $BUILD_TIMESTAMP'
286           # yamllint disable-line rule:line-length
287           body: |
288                 Following progressions occured in the last trending job runs, listed per testbed type.
289
290                 ${{FILE,path="build-root/docs/deploy-site/src/site/resources/trending/_static/vpp/trending-progressions.txt"}}
291
292           always: true
293           failure: false
294
295       - fdio-infra-shiplogs:
296           maven-version: 'mvn33-new'
297
298 - project:
299     name: csit-info
300     project-name: csit
301     jobs:
302       - gerrit-info-yaml-verify
303     build-node: centos7-builder-2c-2g
304     project: csit
305     branch: master
306
307 - project:
308     name: csit-sonar
309     project: csit
310     project-name: csit
311     mvn-settings: csit-settings
312     sonarcloud: true
313     sonarcloud-project-organization: '{sonarcloud_project_organization}'
314     sonarcloud-api-token: '{sonarcloud_api_token}'
315     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
316     branch: master
317     build-node: centos7-builder-2c-2g
318     jobs:
319       - gerrit-maven-sonar