Add CSIT rls1908_1 branch and revert cadence of csit mrr-daily jobs
[ci-management.git] / jjb / csit / csit.yaml
1 # Copyright (c) 2019 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_timed}'
21       - 'csit-report-merge-{stream}'
22       - 'csit-trending-daily-master'
23
24     project: 'csit'
25     branch: 'master'
26     executor: 'ubuntu1804-us'
27     executor-large: 'ubuntu1804-l'
28     build-artifact-num-to-keep: 10
29     stream_timed:
30       - master:
31           branch: 'master'
32           executor: 'ubuntu1804-us'
33     stream:
34       - master:
35           branch: 'master'
36           executor: 'ubuntu1804-us'
37       - '1901':
38           branch: 'rls1901'
39           executor: 'ubuntu1604-basebuild-4c-4g'
40       - '1904':
41           branch: 'rls1904'
42           executor: 'ubuntu1804-us'
43       - '1908_1':
44           branch: 'rls1908_1'
45           executor: 'ubuntu1804-us'
46
47 - project:
48     name: csit-view
49     views:
50       - project-view
51     project-name: csit
52
53 - job-template:
54     name: 'csit-docs-merge-{stream_timed}'
55
56     project-type: freestyle
57     node: '{executor}'
58     concurrent: true
59     allow-empty: 'true'
60     fingerprint: false
61     only-if-success: true
62     default-excludes: false
63
64     build-discarder:
65       daysToKeep: '{build-days-to-keep}'
66       numToKeep: '{build-num-to-keep}'
67       artifactDaysToKeep: '{build-artifact-days-to-keep}'
68       artifactNumToKeep: '{build-artifact-num-to-keep}'
69
70     parameters:
71       - project-parameter:
72           project: '{project}'
73       - gerrit-parameter:
74           branch: '{branch}'
75       - maven-exec:
76           maven-version: 'mvn33-new'
77       - string:
78           name: ARCHIVE_ARTIFACTS
79           default: '{archive-artifacts}'
80           description: Artifacts to archive to the logs server.
81
82     scm:
83       - gerrit-trigger-scm:
84           credentials-id: 'jenkins-gerrit-credentials'
85           refspec: ''
86           choosing-strategy: 'default'
87
88     wrappers:
89       - fdio-infra-wrappers-non-activity-timeout:
90           build-timeout: '{build-timeout}'
91
92     triggers:
93       - reverse:
94           jobs: 'csit-vpp-verify-{stream_timed}-ubuntu1604-weekly'
95           result: 'success'
96       - gerrit:
97           server-name: 'Primary'
98           trigger-on:
99             - comment-added-contains-event:
100                 comment-contains-value: 'run-docs'
101           projects:
102             - project-compare-type: 'ANT'
103               project-pattern: '{project}'
104               branches:
105                 - branch-compare-type: 'ANT'
106                   branch-pattern: '**/{branch}'
107           skip-vote:
108             successful: true
109             failed: true
110             unstable: true
111             notbuilt: true
112
113     builders:
114       - maven-target:
115           maven-version: 'mvn33-new'
116           goals: '--version'
117           settings: 'csit-settings'
118           settings-type: cfp
119           global-settings: 'global-settings'
120           global-settings-type: cfp
121       - provide-maven-settings:
122           settings-file: 'csit-settings'
123           global-settings-file: 'global-settings'
124       - shell:
125           !include-raw-escape: include-raw-csit-docs.sh
126
127     publishers:
128       - fdio-infra-shiplogs:
129           maven-version: 'mvn33-new'
130
131 - job-template:
132     name: 'csit-report-merge-{stream}'
133
134     project-type: freestyle
135     node: '{executor-large}'
136     concurrent: false
137     allow-empty: 'true'
138     fingerprint: false
139     only-if-success: true
140     default-excludes: false
141
142     build-discarder:
143       daysToKeep: '{build-days-to-keep}'
144       numToKeep: '{build-num-to-keep}'
145       artifactDaysToKeep: '{build-artifact-days-to-keep}'
146       artifactNumToKeep: '{build-artifact-num-to-keep}'
147
148     parameters:
149       - project-parameter:
150           project: '{project}'
151       - gerrit-parameter:
152           branch: '{branch}'
153       - maven-exec:
154           maven-version: 'mvn33-new'
155       - string:
156           name: ARCHIVE_ARTIFACTS
157           default: '{archive-artifacts}'
158           description: Artifacts to archive to the logs server.
159
160     scm:
161       - gerrit-trigger-scm:
162           credentials-id: 'jenkins-gerrit-credentials'
163           refspec: '$GERRIT_REFSPEC'
164           choosing-strategy: 'default'
165
166     wrappers:
167       - fdio-infra-wrappers-non-activity-timeout:
168           build-timeout: '{build-timeout}'
169
170     triggers:
171       - gerrit:
172           server-name: 'Primary'
173           trigger-on:
174             - comment-added-contains-event:
175                 comment-contains-value: 'run-report'
176           projects:
177             - project-compare-type: 'ANT'
178               project-pattern: '{project}'
179               branches:
180                 - branch-compare-type: 'ANT'
181                   branch-pattern: '**/{branch}'
182           skip-vote:
183             successful: true
184             failed: true
185             unstable: true
186             notbuilt: true
187
188     builders:
189       - maven-target:
190           maven-version: 'mvn33-new'
191           goals: '--version'
192           settings: 'csit-settings'
193           settings-type: cfp
194           global-settings: 'global-settings'
195           global-settings-type: cfp
196       - provide-maven-settings:
197           settings-file: 'csit-settings'
198           global-settings-file: 'global-settings'
199       - shell:
200           !include-raw-escape: include-raw-csit-report.sh
201
202     publishers:
203       - fdio-infra-shiplogs:
204           maven-version: 'mvn33-new'
205
206 - job-template:
207     name: 'csit-trending-daily-master'
208
209     project-type: freestyle
210     node: '{executor-large}'
211     concurrent: false
212
213     build-discarder:
214       daysToKeep: '{build-days-to-keep}'
215       numToKeep: '{build-num-to-keep}'
216       artifactDaysToKeep: '{build-artifact-days-to-keep}'
217       artifactNumToKeep: '{build-artifact-num-to-keep}'
218
219     parameters:
220       - project-parameter:
221           project: '{project}'
222       - gerrit-parameter:
223           branch: '{branch}'
224       - maven-exec:
225           maven-version: 'mvn33-new'
226
227     scm:
228       - gerrit-trigger-scm:
229           credentials-id: 'jenkins-gerrit-credentials'
230           refspec: ''
231           choosing-strategy: 'default'
232
233     wrappers:
234       - fdio-infra-wrappers-non-activity-timeout:
235           build-timeout: '{build-timeout}'
236
237     triggers:
238       - timed: '0 2,14 * * *'
239
240     builders:
241       - maven-target:
242           maven-version: 'mvn33-new'
243           goals: '--version'
244           settings: 'csit-settings'
245           settings-type: cfp
246           global-settings: 'global-settings'
247           global-settings-type: cfp
248       - provide-maven-settings:
249           settings-file: 'csit-settings'
250           global-settings-file: 'global-settings'
251       - shell:
252           !include-raw-escape: include-raw-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       - fdio-infra-shiplogs:
271           maven-version: 'mvn33-new'
272
273 - project:
274     name: csit-info
275     project-name: csit
276     jobs:
277       - gerrit-info-yaml-verify
278     build-node: centos7-builder-4c-4g
279     project: csit
280     branch: master