CSIT jobs - branching
[ci-management.git] / jjb / csit / csit.yaml
1 - project:
2     name: csit
3     description: 'CSIT jenkins jobs.'
4
5     jobs:
6         - 'csit-vpp-perf-{stream}-{type}'
7         - 'csit-vpp-functional-{stream}-virl'
8         - 'csit-vpp-verify-master-weekly'
9         - 'csit-vpp-master-verify-semiweekly'
10
11     project: 'csit'
12     branch: 'master'
13     branch-id: 'master'
14     build-artifact-num-to-keep: 10
15     type:
16         - all
17         - long
18     stream:
19         - master:
20             branch: 'master'
21             branch-id: 'master'
22         - '1606':
23             branch: 'stable/1606'
24             branch-id: 'stable1606'
25
26 - job-template:
27     name: 'csit-vpp-functional-{stream}-virl'
28
29     project-type: freestyle
30     node: verify
31     concurrent: true
32
33     logrotate:
34         daysToKeep: '{build-days-to-keep}'
35         numToKeep: '{build-num-to-keep}'
36         artifactDaysToKeep: '{build-artifact-days-to-keep}'
37         artifactNumToKeep: '{build-artifact-num-to-keep}'
38
39     parameters:
40         - project-parameter:
41             project: '{project}'
42         - gerrit-parameter:
43             branch: '{branch}'
44
45     scm:
46         - gerrit-trigger-scm:
47             credentials-id: '{ssh-credentials}'
48             refspec: '$GERRIT_REFSPEC'
49             choosing-strategy: 'gerrit'
50
51     wrappers:
52         - ssh-agent-credentials:
53             users:
54                 - '{ssh-credentials}'
55
56     triggers:
57         - gerrit-trigger-patch-submitted:
58             name: '{project}'
59             branch: '{branch}'
60
61     builders:
62         - shell:
63             !include-raw-escape include-raw-csit-vpp-functional-virl.sh
64
65     publishers:
66         - archive-artifacts:
67             artifacts: 'report.html, log.html, output.xml'
68             latest-only: false
69
70         - robot-report:
71             output-path: ''
72
73 - job-template:
74     name: 'csit-vpp-perf-{stream}-{type}'
75
76     project-type: freestyle
77     node: verify
78     concurrent: false
79
80     logrotate:
81         daysToKeep: '{build-days-to-keep}'
82         numToKeep: '{build-num-to-keep}'
83         artifactDaysToKeep: '{build-artifact-days-to-keep}'
84         artifactNumToKeep: '{build-artifact-num-to-keep}'
85
86     parameters:
87         - project-parameter:
88             project: '{project}'
89         - gerrit-parameter:
90             branch: '{branch}'
91         - type-parameter:
92             type: '{type}'
93
94     scm:
95         - gerrit-trigger-scm:
96             credentials-id: '{ssh-credentials}'
97             refspec: '$GERRIT_REFSPEC'
98             choosing-strategy: 'gerrit'
99
100     wrappers:
101         - ssh-agent-credentials:
102             users:
103                 - '{ssh-credentials}'
104
105     triggers:
106         - gerrit-trigger-manually-triggered:
107             name: '{project}'
108             branch: '{branch}'
109             comment-trigger-value: 'verify-perf-{type}'
110
111     builders:
112         - shell:
113             !include-raw-escape jjb/csit/include-raw-csit-vpp-perf-hw.sh
114
115     publishers:
116         - archive-artifacts:
117             artifacts: 'report.html, log.html, output.xml, output_perf_data.xml'
118             latest-only: false
119
120         - robot-report:
121             output-path: ''
122
123         - plot:
124             - title: 'RFC2544 binary search with 64B, worker-thread=1, rss=1, NDR'
125               yaxis: 'Packets Per Second'
126               group: 'RFC2544:NDR'
127               num-builds: '20'
128               keep-records: True
129               series:
130                   - file: 'output_perf_data.xml'
131                     format: xml
132                     xpath-type: 'nodeset'
133                     xpath: '//*[@framesize="64" and contains(@tags,"NDR") and @workerthreads="1"]'
134             - title: 'RFC2544 binary search with 78B, worker-thread=1, rss=1, NDR'
135               yaxis: 'Packets Per Second'
136               group: 'RFC2544:NDR'
137               num-builds: '20'
138               keep-records: True
139               series:
140                   - file: 'output_perf_data.xml'
141                     format: xml
142                     xpath-type: 'nodeset'
143                     xpath: '//*[@framesize="78" and contains(@tags,"NDR") and @workerthreads="1"]'
144             - title: 'RFC2544 binary search with 64B, worker-thread=2, rss=1, NDR'
145               yaxis: 'Packets Per Second'
146               group: 'RFC2544:NDR'
147               num-builds: '20'
148               keep-records: True
149               series:
150                   - file: 'output_perf_data.xml'
151                     format: xml
152                     xpath-type: 'nodeset'
153                     xpath: '//*[@framesize="64" and contains(@tags,"NDR") and @workerthreads="2"]'
154             - title: 'RFC2544 binary search with 78B, worker-thread=2, rss=1, NDR'
155               yaxis: 'Packets Per Second'
156               group: 'RFC2544:NDR'
157               num-builds: '20'
158               keep-records: True
159               series:
160                   - file: 'output_perf_data.xml'
161                     format: xml
162                     xpath-type: 'nodeset'
163                     xpath: '//*[@framesize="78" and contains(@tags,"NDR") and @workerthreads="2"]'
164             - title: 'RFC2544 binary search with 64B, worker-thread=4, rss=2, NDR'
165               yaxis: 'Packets Per Second'
166               group: 'RFC2544:NDR'
167               num-builds: '20'
168               keep-records: True
169               series:
170                   - file: 'output_perf_data.xml'
171                     format: xml
172                     xpath-type: 'nodeset'
173                     xpath: '//*[@framesize="64" and contains(@tags,"NDR") and @workerthreads="4"]'
174             - title: 'RFC2544 binary search with 78B, worker-thread=4, rss=2, NDR'
175               yaxis: 'Packets Per Second'
176               group: 'RFC2544:NDR'
177               num-builds: '20'
178               keep-records: True
179               series:
180                   - file: 'output_perf_data.xml'
181                     format: xml
182                     xpath-type: 'nodeset'
183                     xpath: '//*[@framesize="78" and contains(@tags,"NDR") and @workerthreads="4"]'
184             - title: 'RFC2544 binary search with 64B, worker-thread=1, rss=1, PDR=0.5%'
185               yaxis: 'Packets Per Second'
186               group: 'RFC2544:PDR'
187               num-builds: '20'
188               keep-records: True
189               series:
190                   - file: 'output_perf_data.xml'
191                     format: xml
192                     xpath-type: 'nodeset'
193                     xpath: '//*[@framesize="64" and contains(@tags,"PDR") and @workerthreads="1"]'
194             - title: 'RFC2544 binary search with 78B, worker-thread=1, rss=1, PDR=0.5%'
195               yaxis: 'Packets Per Second'
196               group: 'RFC2544:PDR'
197               num-builds: '20'
198               keep-records: True
199               series:
200                   - file: 'output_perf_data.xml'
201                     format: xml
202                     xpath-type: 'nodeset'
203                     xpath: '//*[@framesize="78" and contains(@tags,"PDR") and @workerthreads="1"]'
204             - title: 'RFC2544 binary search with 64B, worker-thread=2, rss=1, PDR=0.5%'
205               yaxis: 'Packets Per Second'
206               group: 'RFC2544:PDR'
207               num-builds: '20'
208               keep-records: True
209               series:
210                   - file: 'output_perf_data.xml'
211                     format: xml
212                     xpath-type: 'nodeset'
213                     xpath: '//*[@framesize="64" and contains(@tags,"PDR") and @workerthreads="2"]'
214             - title: 'RFC2544 binary search with 78B, worker-thread=2, rss=1, PDR=0.5%'
215               yaxis: 'Packets Per Second'
216               group: 'RFC2544:PDR'
217               num-builds: '20'
218               keep-records: True
219               series:
220                   - file: 'output_perf_data.xml'
221                     format: xml
222                     xpath-type: 'nodeset'
223                     xpath: '//*[@framesize="78" and contains(@tags,"PDR") and @workerthreads="2"]'
224             - title: 'RFC2544 binary search with 64B, worker-thread=4, rss=2, PDR=0.5%'
225               yaxis: 'Packets Per Second'
226               group: 'RFC2544:PDR'
227               num-builds: '20'
228               keep-records: True
229               series:
230                   - file: 'output_perf_data.xml'
231                     format: xml
232                     xpath-type: 'nodeset'
233                     xpath: '//*[@framesize="64" and contains(@tags,"PDR") and @workerthreads="4"]'
234             - title: 'RFC2544 binary search with 78B, worker-thread=4, rss=2, PDR=0.5%'
235               yaxis: 'Packets Per Second'
236               group: 'RFC2544:PDR'
237               num-builds: '20'
238               keep-records: True
239               series:
240                   - file: 'output_perf_data.xml'
241                     format: xml
242                     xpath-type: 'nodeset'
243                     xpath: '//*[@framesize="78" and contains(@tags,"PDR") and @workerthreads="4"]'
244
245 - job-template:
246     name: 'csit-vpp-verify-master-weekly'
247     description: 'Purpose of this job is to validate CSIT code against verified vpp build and create csit-verified branch in case of success.'
248
249     project-type: freestyle
250     node: verify
251     concurrent: false
252
253     logrotate:
254         daysToKeep: '{build-days-to-keep}'
255         numToKeep: '{build-num-to-keep}'
256         artifactDaysToKeep: '{build-artifact-days-to-keep}'
257         artifactNumToKeep: '{build-artifact-num-to-keep}'
258
259     parameters:
260         - project-parameter:
261             project: '{project}'
262         - gerrit-parameter:
263             branch: '{branch}'
264
265     scm:
266         - git-scm:
267             credentials-id: '{ssh-credentials}'
268             branch: '{branch}'
269
270     wrappers:
271         - ssh-agent-credentials:
272             users:
273                 - '{ssh-credentials}'
274
275     triggers:
276         - timed: '0 4 * * 0'
277
278         - gerrit-trigger-manually-triggered:
279             comment-trigger-value: 'csit-vpp-ref-verify'
280             name: '{project}'
281             branch: '{branch}'
282
283     builders:
284         - shell:
285             !include-raw-escape jjb/csit/include-raw-csit-vpp-verify-weekly.sh
286         - shell: 'echo "DATE=`date +%Y-%m-%d`" > $WORKSPACE/variables.prop'
287         - inject:
288             properties-file: variables.prop
289
290     publishers:
291         - archive-artifacts:
292             artifacts: 'report.html, log.html, output.xml'
293             latest-only: false
294
295         - robot-report:
296             output-path: ''
297         - git:
298                push-only-if-success: true
299                branches:
300                 - branch:
301                     remote: origin
302                     name: 'csit-verified-{branch-id}-$DATE'
303
304
305 - job-template:
306     name: 'csit-vpp-master-verify-semiweekly'
307     description: 'Purpose of this job is to validate latest vpp build stored in nexus against verified CSIT codebase.'
308
309     project-type: freestyle
310     node: verify
311     concurrent: false
312
313     logrotate:
314         daysToKeep: '{build-days-to-keep}'
315         numToKeep: '{build-num-to-keep}'
316         artifactDaysToKeep: '{build-artifact-days-to-keep}'
317         artifactNumToKeep: '{build-artifact-num-to-keep}'
318
319     parameters:
320         - project-parameter:
321             project: '{project}'
322         - gerrit-parameter:
323             branch: '{branch}'
324
325     scm:
326         - git-scm:
327             credentials-id: '{ssh-credentials}'
328             branch: 'master'
329
330     wrappers:
331         - ssh-agent-credentials:
332             users:
333                 - '{ssh-credentials}'
334
335     triggers:
336         - timed: '0 4 * * 2,6'
337
338         - gerrit-trigger-manually-triggered:
339             comment-trigger-value: 'csit-verify-vpp'
340             name: '{project}'
341             branch: '{branch}'
342
343     builders:
344         - shell:
345             !include-raw-escape jjb/csit/include-raw-csit-vpp-master-verify-semiweekly.sh
346
347     publishers:
348         - archive-artifacts:
349             artifacts: 'csit/archive/*.*'
350             latest-only: false
351
352         - robot-report:
353             output-path: 'csit/archive'
354
355 - parameter:
356     name: test-type-parameter
357
358     parameters:
359         - string:
360             name: TYPE
361             default: '{type}'
362             description: "Test TYPE parameter if not given by trigger"