Merge "Fix post-build artifact path of hicn doc."
[ci-management.git] / jjb / csit / csit-func.yaml
1 # Copyright (c) 2020 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:
91           - ../scripts/csit/vpp-functional-virl.sh
92
93     publishers:
94       - robot-report:
95           output-path: ''
96
97       - fdio-infra-shiplogs:
98           maven-version: 'mvn33-new'
99
100 - job-template:
101     name: 'csit-nsh_sfc-verify-func-{stream}-{os}-virl'
102
103     project-type: freestyle
104     node: '{os}-basebuild-4c-4g'
105     concurrent: true
106     archive-artifacts: 'archive/*.*'
107     latest-only: false
108
109     build-discarder:
110       daysToKeep: '{build-days-to-keep}'
111       numToKeep: '{build-num-to-keep}'
112       artifactDaysToKeep: '{build-artifact-days-to-keep}'
113       artifactNumToKeep: '{build-artifact-num-to-keep}'
114
115     parameters:
116       - project-parameter:
117           project: '{project}'
118       - gerrit-parameter:
119           branch: '{branch}'
120       - os-parameter:
121           os: '{os}'
122       - stream-parameter:
123           stream: '{stream}'
124       - string:
125           name: ARCHIVE_ARTIFACTS
126           default: '{archive-artifacts}'
127           description: Artifacts to archive to the logs server.
128
129     scm:
130       - gerrit-trigger-scm:
131           credentials-id: 'jenkins-gerrit-credentials'
132           refspec: '$GERRIT_REFSPEC'
133           choosing-strategy: 'gerrit'
134
135     wrappers:
136       - fdio-infra-wrappers:
137           build-timeout: '{build-timeout}'
138
139     triggers:
140       - gerrit-trigger-manually-triggered:
141           name: '{project}'
142           branch: '{branch}'
143           comment-trigger-value: 'csit_nsh_sfc_func_{stream}'
144
145     builders:
146       - shell:
147           !include-raw-escape:
148           - ../scripts/csit/nsh_sfc-functional-virl.sh
149
150     publishers:
151       - robot-report:
152           output-path: 'archive'
153
154       - fdio-infra-shiplogs:
155           maven-version: 'mvn33-new'
156
157 - job-template:
158     name: 'csit-tldk-verify-func-{stream}-{os}-virl'
159
160     project-type: freestyle
161     node: '{os}-basebuild-4c-4g'
162     concurrent: true
163     archive-artifacts: 'archive/*.*'
164     latest-only: false
165
166     build-discarder:
167       daysToKeep: '{build-days-to-keep}'
168       numToKeep: '{build-num-to-keep}'
169       artifactDaysToKeep: '{build-artifact-days-to-keep}'
170       artifactNumToKeep: '{build-artifact-num-to-keep}'
171
172     parameters:
173       - project-parameter:
174           project: '{project}'
175       - gerrit-parameter:
176           branch: '{branch}'
177       - os-parameter:
178           os: '{os}'
179       - string:
180           name: ARCHIVE_ARTIFACTS
181           default: '{archive-artifacts}'
182           description: Artifacts to archive to the logs server.
183
184     scm:
185       - gerrit-trigger-scm:
186           credentials-id: 'jenkins-gerrit-credentials'
187           refspec: '$GERRIT_REFSPEC'
188           choosing-strategy: 'gerrit'
189
190     wrappers:
191       - fdio-infra-wrappers:
192           build-timeout: '{build-timeout}'
193
194     triggers:
195       - gerrit-trigger-manually-triggered:
196           name: '{project}'
197           branch: '{branch}'
198           comment-trigger-value: 'csit_verify_tldk_func'
199
200     builders:
201       - shell:
202           !include-raw-escape:
203           - ../scripts/csit/tldk-functional-virl.sh
204
205     publishers:
206       - robot-report:
207           output-path: 'archive'
208
209       - fdio-infra-shiplogs:
210           maven-version: 'mvn33-new'
211
212 - job-template:
213     name: 'csit-dmm-functional-{stream}-ubuntu1604-virl'
214
215     project-type: freestyle
216     node: 'ubuntu1604-basebuild-4c-4g'
217     concurrent: true
218     archive-artifacts: 'archive/*.*'
219     latest-only: false
220
221     build-discarder:
222       daysToKeep: '{build-days-to-keep}'
223       numToKeep: '{build-num-to-keep}'
224       artifactDaysToKeep: '{build-artifact-days-to-keep}'
225       artifactNumToKeep: '{build-artifact-num-to-keep}'
226
227     parameters:
228       - project-parameter:
229           project: '{project}'
230       - gerrit-parameter:
231           branch: '{branch}'
232       - string:
233           name: ARCHIVE_ARTIFACTS
234           default: '{archive-artifacts}'
235           description: Artifacts to archive to the logs server.
236
237     scm:
238       - gerrit-trigger-scm:
239           credentials-id: 'jenkins-gerrit-credentials'
240           refspec: '$GERRIT_REFSPEC'
241           choosing-strategy: 'gerrit'
242
243     wrappers:
244       - fdio-infra-wrappers:
245           build-timeout: '{build-timeout}'
246
247     triggers:
248       - gerrit-trigger-manually-triggered:
249           name: '{project}'
250           branch: '{branch}'
251           comment-trigger-value: 'csit_verify_dmm_func'
252
253     builders:
254       - shell:
255           !include-raw-escape:
256           - ../scripts/csit/dmm-functional-virl.sh
257
258     publishers:
259       - robot-report:
260           output-path: ''
261
262       - fdio-infra-shiplogs:
263           maven-version: 'mvn33-new'