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