CSIT: Email publisher
[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-merge-daily-master-{os}-{executor-arch}'
23       - 'csit-trending-merge-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       - '2101_1':
39           branch: 'rls2101_1'
40       - '2106':
41           branch: 'rls2106'
42
43 - project:
44     name: csit-view
45     views:
46       - project-view
47     project-name: csit
48
49 - job-template:
50     name: 'csit-docs-merge-{stream}-{os}-{executor-arch}'
51
52     project-type: freestyle
53     node: 'builder-{os}-prod-{executor-arch}'
54     concurrent: true
55     allow-empty: 'true'
56     fingerprint: false
57     only-if-success: true
58     default-excludes: false
59
60     build-discarder:
61       daysToKeep: '{build-days-to-keep}'
62       numToKeep: '{build-num-to-keep}'
63       artifactDaysToKeep: '{build-artifact-days-to-keep}'
64       artifactNumToKeep: '{build-artifact-num-to-keep}'
65
66     parameters:
67       - project-parameter:
68           project: '{project}'
69       - gerrit-parameter:
70           branch: '{branch}'
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}-{os}-{executor-arch}-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       - shell:
105           !include-raw-escape:
106           - ../scripts/setup_executor_env.sh
107       - shell:
108           !include-raw-escape:
109           - ../scripts/csit/docs.sh
110
111     publishers:
112       - fdio-infra-publish-docs
113       - fdio-infra-publish
114
115 - job-template:
116     name: 'csit-report-merge-{stream}-{os}-{executor-arch}'
117
118     project-type: freestyle
119     node: 'builder-{os}-prod-{executor-arch}'
120     concurrent: false
121     latest-only: false
122
123     build-discarder:
124       daysToKeep: '{build-days-to-keep}'
125       numToKeep: '{build-num-to-keep}'
126       artifactDaysToKeep: '{build-artifact-days-to-keep}'
127       artifactNumToKeep: '{build-artifact-num-to-keep}'
128
129     parameters:
130       - project-parameter:
131           project: '{project}'
132       - gerrit-parameter:
133           branch: '{branch}'
134
135     scm:
136       - gerrit-trigger-scm:
137           credentials-id: 'jenkins-gerrit-credentials'
138           refspec: ''
139           choosing-strategy: 'default'
140
141     wrappers:
142       - fdio-infra-wrappers-non-activity-timeout:
143           build-timeout: '{build-timeout}'
144
145     triggers:
146       - gerrit:
147           server-name: 'Primary'
148           trigger-on:
149             - comment-added-contains-event:
150                 comment-contains-value: 'run-report'
151           projects:
152             - project-compare-type: 'ANT'
153               project-pattern: '{project}'
154               branches:
155                 - branch-compare-type: 'ANT'
156                   branch-pattern: '**/{branch}'
157           skip-vote:
158             successful: true
159             failed: true
160             unstable: true
161             notbuilt: true
162
163     builders:
164       - shell:
165           !include-raw-escape:
166           - ../scripts/setup_executor_env.sh
167       - shell:
168           !include-raw-escape:
169           - ../scripts/csit/report.sh
170
171     publishers:
172       - fdio-infra-publish-docs
173       - fdio-infra-publish
174
175 - job-template:
176     name: 'csit-trending-merge-daily-master-{os}-{executor-arch}'
177
178     project-type: freestyle
179     node: 'builder-{os}-prod-{executor-arch}'
180     concurrent: false
181
182     build-discarder:
183       daysToKeep: '{build-days-to-keep}'
184       numToKeep: '{build-num-to-keep}'
185       artifactDaysToKeep: '{build-artifact-days-to-keep}'
186       artifactNumToKeep: '{build-artifact-num-to-keep}'
187
188     parameters:
189       - project-parameter:
190           project: '{project}'
191       - gerrit-parameter:
192           branch: '{branch}'
193
194     scm:
195       - gerrit-trigger-scm:
196           credentials-id: 'jenkins-gerrit-credentials'
197           refspec: ''
198           choosing-strategy: 'default'
199
200     wrappers:
201       - fdio-infra-wrappers-non-activity-timeout:
202           build-timeout: '{build-timeout}'
203
204     triggers:
205       - timed: '0 2,14 * * *'
206
207     builders:
208       - shell:
209           !include-raw-escape:
210           - ../scripts/setup_executor_env.sh
211       - shell:
212           !include-raw-escape:
213           - ../scripts/csit/trending.sh
214
215     publishers:
216       - csit-trending-failed:
217           branch: 'master'
218       - csit-trending-failed-job:
219           branch: 'master'
220       - csit-trending-progressions:
221           branch: 'master'
222       - csit-trending-regressions:
223           branch: 'master'
224       - fdio-infra-publish-docs
225       - fdio-infra-publish
226
227 - job-template:
228     name: 'csit-trending-merge-weekly-2009-lts-{os}-{executor-arch}'
229
230     project-type: freestyle
231     node: 'builder-{os}-prod-{executor-arch}'
232     concurrent: false
233
234     build-discarder:
235       daysToKeep: '{build-days-to-keep}'
236       numToKeep: '{build-num-to-keep}'
237       artifactDaysToKeep: '{build-artifact-days-to-keep}'
238       artifactNumToKeep: '{build-artifact-num-to-keep}'
239
240     parameters:
241       - project-parameter:
242           project: '{project}'
243       - gerrit-parameter:
244           branch: 'rls2009_lts'
245
246     scm:
247       - gerrit-trigger-scm:
248           credentials-id: 'jenkins-gerrit-credentials'
249           refspec: ''
250           choosing-strategy: 'default'
251
252     wrappers:
253       - fdio-infra-wrappers-non-activity-timeout:
254           build-timeout: '{build-timeout}'
255
256     triggers:
257       - timed: '0 0 * * 1'
258
259     builders:
260       - shell:
261           !include-raw-escape:
262           - ../scripts/setup_executor_env.sh
263       - shell:
264           !include-raw-escape:
265           - ../scripts/csit/trending.sh
266
267     publishers:
268       - csit-trending-failed:
269           branch: '2009 LTS'
270       - csit-trending-failed-job:
271           branch: '2009 LTS'
272       - csit-trending-progressions:
273           branch: '2009 LTS'
274       - csit-trending-regressions:
275           branch: '2009 LTS'
276       - fdio-infra-publish-docs
277       - fdio-infra-publish
278
279
280 - project:
281     name: csit-info
282     project-name: csit
283     jobs:
284       - gerrit-info-yaml-verify
285     build-node: centos7-builder-2c-2g
286     project: csit
287     branch: master
288
289 - project:
290     name: csit-sonar
291     project: csit
292     project-name: csit
293     mvn-settings: csit-settings
294     sonarcloud: true
295     sonarcloud-project-organization: '{sonarcloud_project_organization}'
296     sonarcloud-api-token: '{sonarcloud_api_token}'
297     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
298     branch: master
299     build-node: centos7-builder-2c-2g
300     jobs:
301       - gerrit-maven-sonar