Merge "Add CSIT rls1908_2 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
37 - project:
38     name: csit-view
39     views:
40       - project-view
41     project-name: csit
42
43 - job-template:
44     name: 'csit-docs-merge-{stream}'
45
46     project-type: freestyle
47     node: '{executor}'
48     concurrent: true
49     allow-empty: 'true'
50     fingerprint: false
51     only-if-success: true
52     default-excludes: false
53
54     build-discarder:
55       daysToKeep: '{build-days-to-keep}'
56       numToKeep: '{build-num-to-keep}'
57       artifactDaysToKeep: '{build-artifact-days-to-keep}'
58       artifactNumToKeep: '{build-artifact-num-to-keep}'
59
60     parameters:
61       - project-parameter:
62           project: '{project}'
63       - gerrit-parameter:
64           branch: '{branch}'
65       - maven-exec:
66           maven-version: 'mvn33-new'
67       - string:
68           name: ARCHIVE_ARTIFACTS
69           default: '{archive-artifacts}'
70           description: Artifacts to archive to the logs server.
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/csit/docs.sh
117
118     publishers:
119       - fdio-infra-shiplogs:
120           maven-version: 'mvn33-new'
121
122 - job-template:
123     name: 'csit-report-merge-{stream}'
124
125     project-type: freestyle
126     node: '{executor-large}'
127     concurrent: false
128     allow-empty: 'true'
129     fingerprint: false
130     only-if-success: true
131     default-excludes: false
132
133     build-discarder:
134       daysToKeep: '{build-days-to-keep}'
135       numToKeep: '{build-num-to-keep}'
136       artifactDaysToKeep: '{build-artifact-days-to-keep}'
137       artifactNumToKeep: '{build-artifact-num-to-keep}'
138
139     parameters:
140       - project-parameter:
141           project: '{project}'
142       - gerrit-parameter:
143           branch: '{branch}'
144       - maven-exec:
145           maven-version: 'mvn33-new'
146       - string:
147           name: ARCHIVE_ARTIFACTS
148           default: '{archive-artifacts}'
149           description: Artifacts to archive to the logs server.
150
151     scm:
152       - gerrit-trigger-scm:
153           credentials-id: 'jenkins-gerrit-credentials'
154           refspec: '$GERRIT_REFSPEC'
155           choosing-strategy: 'default'
156
157     wrappers:
158       - fdio-infra-wrappers-non-activity-timeout:
159           build-timeout: '{build-timeout}'
160
161     triggers:
162       - gerrit:
163           server-name: 'Primary'
164           trigger-on:
165             - comment-added-contains-event:
166                 comment-contains-value: 'run-report'
167           projects:
168             - project-compare-type: 'ANT'
169               project-pattern: '{project}'
170               branches:
171                 - branch-compare-type: 'ANT'
172                   branch-pattern: '**/{branch}'
173           skip-vote:
174             successful: true
175             failed: true
176             unstable: true
177             notbuilt: true
178
179     builders:
180       - maven-target:
181           maven-version: 'mvn33-new'
182           goals: '--version'
183           settings: 'csit-settings'
184           settings-type: cfp
185           global-settings: 'global-settings'
186           global-settings-type: cfp
187       - provide-maven-settings:
188           settings-file: 'csit-settings'
189           global-settings-file: 'global-settings'
190       - shell:
191           !include-raw-escape:
192           - ../scripts/csit/report.sh
193
194     publishers:
195       - fdio-infra-shiplogs:
196           maven-version: 'mvn33-new'
197
198 - job-template:
199     name: 'csit-trending-daily-master'
200
201     project-type: freestyle
202     node: '{executor-large}'
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 2,14 * * *'
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/csit/cpta.sh
246
247     publishers:
248       - email-ext:
249           # yamllint disable-line rule:line-length
250           recipients: 'tifrank@cisco.com, csit-report+int+616+181919729795594561@lists.fd.io'
251           reply-to: ''
252           content-type: 'text'
253           subject: 'Failed tests as of  $BUILD_TIMESTAMP'
254           # yamllint disable-line rule:line-length
255           body: |
256                 Following tests failed in the last trending job runs, listed per testbed type.
257
258                 ${{FILE,path="build-root/docs/deploy-site/src/site/resources/trending/_static/vpp/trending-failed-tests.txt"}}
259
260           always: true
261           failure: false
262
263       - email-ext:
264           # yamllint disable-line rule:line-length
265           recipients: 'tifrank@cisco.com, csit-report+int+616+181919729795594561@lists.fd.io'
266           reply-to: ''
267           content-type: 'text'
268           subject: 'Regressions as of  $BUILD_TIMESTAMP'
269           # yamllint disable-line rule:line-length
270           body: |
271                 Following regressions occured in the last trending job runs, listed per testbed type.
272
273                 ${{FILE,path="build-root/docs/deploy-site/src/site/resources/trending/_static/vpp/trending-regressions.txt"}}
274
275           always: true
276           failure: false
277
278       - email-ext:
279           # yamllint disable-line rule:line-length
280           recipients: 'tifrank@cisco.com, csit-report+int+616+181919729795594561@lists.fd.io'
281           reply-to: ''
282           content-type: 'text'
283           subject: 'Progressions as of  $BUILD_TIMESTAMP'
284           # yamllint disable-line rule:line-length
285           body: |
286                 Following progressions occured in the last trending job runs, listed per testbed type.
287
288                 ${{FILE,path="build-root/docs/deploy-site/src/site/resources/trending/_static/vpp/trending-progressions.txt"}}
289
290           always: true
291           failure: false
292
293       - fdio-infra-shiplogs:
294           maven-version: 'mvn33-new'
295
296 - project:
297     name: csit-info
298     project-name: csit
299     jobs:
300       - gerrit-info-yaml-verify
301     build-node: centos7-builder-4c-4g
302     project: csit
303     branch: master