90fc9d327d523667571ce6edf2f9edf4345e9c5f
[ci-management.git] / jjb / csit / csit-func.yaml
1 # Copyright (c) 2019 Cisco and/or its affiliates.
2 # Copyright (c) 2019 PANTHEON.tech s.r.o. and/or its affiliates.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at:
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 ---
16 - project:
17     name: csit-func
18     description: 'CSIT Functinal Testing Jenkins jobs.'
19     os:
20       - 'ubuntu1604'
21       - 'centos7'
22
23     jobs:
24       - 'csit-vpp-functional-{stream}-{os}-virl'
25       - 'csit-nsh_sfc-verify-func-{stream}-{os}-virl'
26       - 'csit-tldk-verify-func-{stream}-{os}-virl'
27       - 'csit-dmm-functional-{stream}-ubuntu1604-virl'
28
29     project: 'csit'
30     branch: 'master'
31     branch-id: 'oper'
32     build-artifact-num-to-keep: 10
33     stream:
34       - '1904':
35           branch: 'rls1904'
36       - '1908_1':
37           branch: 'rls1908_1'
38
39 - job-template:
40     name: 'csit-vpp-functional-{stream}-{os}-virl'
41
42     project-type: freestyle
43     node: '{os}-basebuild-4c-4g'
44     concurrent: true
45     archive-artifacts: >
46       **/csit/report.html
47       **/csit/log.html
48       **/csit/output.xml
49     latest-only: false
50
51     build-discarder:
52       daysToKeep: '{build-days-to-keep}'
53       numToKeep: '{build-num-to-keep}'
54       artifactDaysToKeep: '{build-artifact-days-to-keep}'
55       artifactNumToKeep: '{build-artifact-num-to-keep}'
56
57     parameters:
58       - project-parameter:
59           project: '{project}'
60       - gerrit-parameter:
61           branch: '{branch}'
62       - string:
63           name: ARCHIVE_ARTIFACTS
64           default: '{archive-artifacts}'
65           description: Artifacts to archive to the logs server.
66       # This is an automatic verify job, part of API coverage.
67       # CRC checking is needed to ensure vpp crc job breaks only when intended.
68       # Can be removed when this job is no longer needed for full API coverage.
69       - csit-fail-on-crc-mismatch-parameter:
70           fail-on-crc-mismatch: 'True'
71
72     scm:
73       - gerrit-trigger-scm:
74           credentials-id: 'jenkins-gerrit-credentials'
75           refspec: '$GERRIT_REFSPEC'
76           choosing-strategy: 'gerrit'
77
78     wrappers:
79       - fdio-infra-wrappers:
80           build-timeout: '{build-timeout}'
81
82     triggers:
83       - gerrit-trigger-manually-triggered:
84           name: '{project}'
85           branch: '{branch}'
86           comment-trigger-value: 'csit-virltest'
87
88     builders:
89       - shell:
90           !include-raw-escape: include-raw-csit-vpp-functional-virl.sh
91
92     publishers:
93       - robot-report:
94           output-path: ''
95
96       - fdio-infra-shiplogs:
97           maven-version: 'mvn33-new'
98
99 - job-template:
100     name: 'csit-nsh_sfc-verify-func-{stream}-{os}-virl'
101
102     project-type: freestyle
103     node: '{os}-basebuild-4c-4g'
104     concurrent: true
105     archive-artifacts: 'archive/*.*'
106     latest-only: false
107
108     build-discarder:
109       daysToKeep: '{build-days-to-keep}'
110       numToKeep: '{build-num-to-keep}'
111       artifactDaysToKeep: '{build-artifact-days-to-keep}'
112       artifactNumToKeep: '{build-artifact-num-to-keep}'
113
114     parameters:
115       - project-parameter:
116           project: '{project}'
117       - gerrit-parameter:
118           branch: '{branch}'
119       - os-parameter:
120           os: '{os}'
121       - stream-parameter:
122           stream: '{stream}'
123       - string:
124           name: ARCHIVE_ARTIFACTS
125           default: '{archive-artifacts}'
126           description: Artifacts to archive to the logs server.
127
128     scm:
129       - gerrit-trigger-scm:
130           credentials-id: 'jenkins-gerrit-credentials'
131           refspec: '$GERRIT_REFSPEC'
132           choosing-strategy: 'gerrit'
133
134     wrappers:
135       - fdio-infra-wrappers:
136           build-timeout: '{build-timeout}'
137
138     triggers:
139       - gerrit-trigger-manually-triggered:
140           name: '{project}'
141           branch: '{branch}'
142           comment-trigger-value: 'csit_nsh_sfc_func_{stream}'
143
144     builders:
145       - shell:
146           !include-raw-escape: include-raw-csit-nsh_sfc-functional-virl.sh
147
148     publishers:
149       - robot-report:
150           output-path: 'archive'
151
152       - fdio-infra-shiplogs:
153           maven-version: 'mvn33-new'
154
155 - job-template:
156     name: 'csit-tldk-verify-func-{stream}-{os}-virl'
157
158     project-type: freestyle
159     node: '{os}-basebuild-4c-4g'
160     concurrent: true
161     archive-artifacts: 'archive/*.*'
162     latest-only: false
163
164     build-discarder:
165       daysToKeep: '{build-days-to-keep}'
166       numToKeep: '{build-num-to-keep}'
167       artifactDaysToKeep: '{build-artifact-days-to-keep}'
168       artifactNumToKeep: '{build-artifact-num-to-keep}'
169
170     parameters:
171       - project-parameter:
172           project: '{project}'
173       - gerrit-parameter:
174           branch: '{branch}'
175       - os-parameter:
176           os: '{os}'
177       - string:
178           name: ARCHIVE_ARTIFACTS
179           default: '{archive-artifacts}'
180           description: Artifacts to archive to the logs server.
181
182     scm:
183       - gerrit-trigger-scm:
184           credentials-id: 'jenkins-gerrit-credentials'
185           refspec: '$GERRIT_REFSPEC'
186           choosing-strategy: 'gerrit'
187
188     wrappers:
189       - fdio-infra-wrappers:
190           build-timeout: '{build-timeout}'
191
192     triggers:
193       - gerrit-trigger-manually-triggered:
194           name: '{project}'
195           branch: '{branch}'
196           comment-trigger-value: 'csit_verify_tldk_func'
197
198     builders:
199       - shell:
200           !include-raw-escape: include-raw-csit-tldk-functional-virl.sh
201
202     publishers:
203       - robot-report:
204           output-path: 'archive'
205
206       - fdio-infra-shiplogs:
207           maven-version: 'mvn33-new'
208
209 - job-template:
210     name: 'csit-dmm-functional-{stream}-ubuntu1604-virl'
211
212     project-type: freestyle
213     node: 'ubuntu1604-basebuild-4c-4g'
214     concurrent: true
215     archive-artifacts: 'archive/*.*'
216     latest-only: false
217
218     build-discarder:
219       daysToKeep: '{build-days-to-keep}'
220       numToKeep: '{build-num-to-keep}'
221       artifactDaysToKeep: '{build-artifact-days-to-keep}'
222       artifactNumToKeep: '{build-artifact-num-to-keep}'
223
224     parameters:
225       - project-parameter:
226           project: '{project}'
227       - gerrit-parameter:
228           branch: '{branch}'
229       - string:
230           name: ARCHIVE_ARTIFACTS
231           default: '{archive-artifacts}'
232           description: Artifacts to archive to the logs server.
233
234     scm:
235       - gerrit-trigger-scm:
236           credentials-id: 'jenkins-gerrit-credentials'
237           refspec: '$GERRIT_REFSPEC'
238           choosing-strategy: 'gerrit'
239
240     wrappers:
241       - fdio-infra-wrappers:
242           build-timeout: '{build-timeout}'
243
244     triggers:
245       - gerrit-trigger-manually-triggered:
246           name: '{project}'
247           branch: '{branch}'
248           comment-trigger-value: 'csit_verify_dmm_func'
249
250     builders:
251       - shell:
252           !include-raw-escape: include-raw-csit-dmm-functional-virl.sh
253
254     publishers:
255       - robot-report:
256           output-path: ''
257
258       - fdio-infra-shiplogs:
259           maven-version: 'mvn33-new'