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