vpp: run 'make test-dep' for all OS variants.
[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
24     project: 'csit'
25     branch: 'master'
26     os:
27       - 'ubuntu2004'
28     executor-arch: 'x86_64'
29     build-artifact-num-to-keep: 10
30     stream:
31       - master:
32           branch: 'master'
33       - '2101_1':
34           branch: 'rls2101_1'
35       - '2106':
36           branch: 'rls2106'
37       - '2110':
38           branch: 'rls2110'
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}-{os}-{executor-arch}'
48
49     project-type: freestyle
50     node: 'builder-{os}-prod-{executor-arch}'
51     concurrent: true
52     allow-empty: 'true'
53     fingerprint: false
54     only-if-success: true
55     default-excludes: false
56
57     properties:
58       - lf-infra-properties:
59           build-days-to-keep: "{build-days-to-keep}"
60
61     parameters:
62       - project-parameter:
63           project: '{project}'
64       - gerrit-parameter:
65           branch: '{branch}'
66
67     scm:
68       - gerrit-trigger-scm:
69           credentials-id: 'jenkins-gerrit-credentials'
70           refspec: ''
71           choosing-strategy: 'default'
72
73     wrappers:
74       - fdio-infra-wrappers-non-activity-timeout:
75           build-timeout: '{build-timeout}'
76
77     triggers:
78       - reverse:
79           jobs: 'csit-vpp-device-{stream}-{os}-{executor-arch}-1n-skx-weekly'
80           result: 'success'
81       - gerrit:
82           server-name: 'Primary'
83           trigger-on:
84             - comment-added-contains-event:
85                 comment-contains-value: 'run-docs'
86           projects:
87             - project-compare-type: 'ANT'
88               project-pattern: '{project}'
89               branches:
90                 - branch-compare-type: 'ANT'
91                   branch-pattern: '**/{branch}'
92           skip-vote:
93             successful: true
94             failed: true
95             unstable: true
96             notbuilt: true
97
98     builders:
99       - shell:
100           !include-raw-escape:
101           - ../scripts/setup_executor_env.sh
102       - shell:
103           !include-raw-escape:
104           - ../scripts/csit/docs.sh
105
106     publishers:
107       - fdio-infra-publish-docs
108       - fdio-infra-publish
109
110 - job-template:
111     name: 'csit-report-merge-{stream}-{os}-{executor-arch}'
112
113     project-type: freestyle
114     node: 'builder-{os}-prod-{executor-arch}'
115     concurrent: false
116     latest-only: false
117
118     properties:
119       - lf-infra-properties:
120           build-days-to-keep: "{build-days-to-keep}"
121
122     parameters:
123       - project-parameter:
124           project: '{project}'
125       - gerrit-parameter:
126           branch: '{branch}'
127
128     scm:
129       - gerrit-trigger-scm:
130           credentials-id: 'jenkins-gerrit-credentials'
131           refspec: ''
132           choosing-strategy: 'default'
133
134     wrappers:
135       - fdio-infra-wrappers-non-activity-timeout:
136           build-timeout: '{build-timeout}'
137
138     triggers:
139       - gerrit:
140           server-name: 'Primary'
141           trigger-on:
142             - comment-added-contains-event:
143                 comment-contains-value: 'run-report'
144           projects:
145             - project-compare-type: 'ANT'
146               project-pattern: '{project}'
147               branches:
148                 - branch-compare-type: 'ANT'
149                   branch-pattern: '**/{branch}'
150           skip-vote:
151             successful: true
152             failed: true
153             unstable: true
154             notbuilt: true
155
156     builders:
157       - shell:
158           !include-raw-escape:
159           - ../scripts/setup_executor_env.sh
160       - shell:
161           !include-raw-escape:
162           - ../scripts/csit/report.sh
163
164     publishers:
165       - fdio-infra-publish-docs
166       - fdio-infra-publish
167
168 - job-template:
169     name: 'csit-trending-merge-daily-master-{os}-{executor-arch}'
170
171     project-type: freestyle
172     node: 'builder-{os}-prod-{executor-arch}'
173     concurrent: false
174
175     properties:
176       - lf-infra-properties:
177           build-days-to-keep: "{build-days-to-keep}"
178
179     parameters:
180       - project-parameter:
181           project: '{project}'
182       - gerrit-parameter:
183           branch: '{branch}'
184
185     scm:
186       - gerrit-trigger-scm:
187           credentials-id: 'jenkins-gerrit-credentials'
188           refspec: ''
189           choosing-strategy: 'default'
190
191     wrappers:
192       - fdio-infra-wrappers-non-activity-timeout:
193           build-timeout: '{build-timeout}'
194
195     triggers:
196       - timed: '0 14 * * 1,3,5'
197
198     builders:
199       - shell:
200           !include-raw-escape:
201           - ../scripts/setup_executor_env.sh
202       - shell:
203           !include-raw-escape:
204           - ../scripts/csit/trending.sh
205
206     publishers:
207       - csit-trending-failed:
208           branch: 'master'
209       - csit-trending-failed-job:
210           branch: 'master'
211       - csit-trending-progressions:
212           branch: 'master'
213       - csit-trending-regressions:
214           branch: 'master'
215       - fdio-infra-publish-docs
216       - fdio-infra-publish
217
218 - project:
219     name: csit-info
220     project-name: csit
221     jobs:
222       - gerrit-info-yaml-verify
223     build-node: centos7-builder-2c-2g
224     project: csit
225     branch: master
226
227 - project:
228     name: csit-sonar
229     project: csit
230     project-name: csit
231     mvn-settings: csit-settings
232     sonarcloud: true
233     sonarcloud-project-organization: '{sonarcloud_project_organization}'
234     sonarcloud-api-token: '{sonarcloud_api_token}'
235     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
236     branch: master
237     build-node: centos7-builder-2c-2g
238     jobs:
239       - gerrit-maven-sonar