c75e4819bba123129243617b4805ac249455d74a
[ci-management.git] / jjb / csit / csit.yaml
1 # Copyright (c) 2022 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
23     project: 'csit'
24     branch: 'master'
25     os:
26       - 'ubuntu2004'
27     executor-arch: 'x86_64'
28     build-artifact-num-to-keep: 10
29     stream:
30       - master:
31           branch: 'master'
32       - '2202':
33           branch: 'rls2202'
34       - '2206':
35           branch: 'rls2206'
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}-{os}-{executor-arch}'
45
46     project-type: freestyle
47     node: 'builder-{os}-prod-{executor-arch}'
48     concurrent: true
49     allow-empty: 'true'
50     fingerprint: false
51     only-if-success: true
52     default-excludes: false
53
54     properties:
55       - lf-infra-properties:
56           build-days-to-keep: "{build-days-to-keep}"
57
58     parameters:
59       - project-parameter:
60           project: '{project}'
61       - gerrit-parameter:
62           branch: '{branch}'
63
64     scm:
65       - gerrit-trigger-scm:
66           credentials-id: 'jenkins-gerrit-credentials'
67           refspec: ''
68           choosing-strategy: 'default'
69
70     wrappers:
71       - fdio-infra-wrappers-non-activity-timeout:
72           build-timeout: '{build-timeout}'
73
74     triggers:
75       - reverse:
76           jobs: 'csit-vpp-device-{stream}-{os}-{executor-arch}-1n-skx-weekly'
77           result: 'success'
78       - gerrit:
79           server-name: 'Primary'
80           trigger-on:
81             - comment-added-contains-event:
82                 comment-contains-value: 'run-docs'
83           projects:
84             - project-compare-type: 'ANT'
85               project-pattern: '{project}'
86               branches:
87                 - branch-compare-type: 'ANT'
88                   branch-pattern: '**/{branch}'
89           skip-vote:
90             successful: true
91             failed: true
92             unstable: true
93             notbuilt: true
94
95     builders:
96       - shell:
97           !include-raw-escape:
98           - ../scripts/setup_executor_env.sh
99       - shell:
100           !include-raw-escape:
101           - ../scripts/csit/docs.sh
102
103     publishers:
104       - fdio-infra-publish-docs
105       - fdio-infra-publish
106
107 - job-template:
108     name: 'csit-report-merge-{stream}-{os}-{executor-arch}'
109
110     project-type: freestyle
111     node: 'builder-{os}-prod-{executor-arch}'
112     concurrent: false
113     latest-only: false
114
115     properties:
116       - lf-infra-properties:
117           build-days-to-keep: "{build-days-to-keep}"
118
119     parameters:
120       - project-parameter:
121           project: '{project}'
122       - gerrit-parameter:
123           branch: '{branch}'
124
125     scm:
126       - gerrit-trigger-scm:
127           credentials-id: 'jenkins-gerrit-credentials'
128           refspec: ''
129           choosing-strategy: 'default'
130
131     wrappers:
132       - fdio-infra-wrappers-non-activity-timeout:
133           build-timeout: '{build-timeout}'
134
135     triggers:
136       - gerrit:
137           server-name: 'Primary'
138           trigger-on:
139             - comment-added-contains-event:
140                 comment-contains-value: 'run-report'
141           projects:
142             - project-compare-type: 'ANT'
143               project-pattern: '{project}'
144               branches:
145                 - branch-compare-type: 'ANT'
146                   branch-pattern: '**/{branch}'
147           skip-vote:
148             successful: true
149             failed: true
150             unstable: true
151             notbuilt: true
152
153     builders:
154       - shell:
155           !include-raw-escape:
156           - ../scripts/setup_executor_env.sh
157       - shell:
158           !include-raw-escape:
159           - ../scripts/csit/report.sh
160
161     publishers:
162       - fdio-infra-publish-docs
163       - fdio-infra-publish
164
165 - project:
166     name: csit-info
167     project-name: csit
168     jobs:
169       - gerrit-info-yaml-verify
170     build-node: centos7-builder-2c-2g
171     project: csit
172     branch: master
173
174 - project:
175     name: csit-sonar
176     project: csit
177     project-name: csit
178     mvn-settings: csit-settings
179     sonarcloud: true
180     sonarcloud-project-organization: '{sonarcloud_project_organization}'
181     sonarcloud-api-token: '{sonarcloud_api_token}'
182     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
183     branch: master
184     build-node: centos7-builder-2c-2g
185     jobs:
186       - gerrit-maven-sonar