Merge "Add simple plot into csit/perf job"
[ci-management.git] / jjb / csit / csit-vpp-functional.yaml
1 - project:
2     name: csit-vpp-functional
3     description: 'Run VPP functional tests on VIRL.'
4
5     jobs:
6         - 'csit-vpp-perf-hw-{type}'
7         - 'csit-vpp-functional-virl'
8         - 'csit-vpp-verify-weekly'
9         - 'csit-vpp-master-verify-semiweekly'
10
11     project: 'csit'
12     branch: 'master'
13     type:
14         - all
15
16 - job-template:
17     name: 'csit-vpp-functional-virl'
18
19     project-type: freestyle
20     node: verify
21     concurrent: true
22
23     logrotate:
24         daysToKeep: '{build-days-to-keep}'
25         numToKeep: '{build-num-to-keep}'
26         artifactDaysToKeep: '{build-artifact-days-to-keep}'
27         artifactNumToKeep: '{build-artifact-num-to-keep}'
28
29     parameters:
30         - project-parameter:
31             project: '{project}'
32         - gerrit-parameter:
33             branch: '{branch}'
34
35     scm:
36         - gerrit-trigger-scm:
37             credentials-id: '{ssh-credentials}'
38             refspec: '$GERRIT_REFSPEC'
39             choosing-strategy: 'gerrit'
40
41     wrappers:
42         - ssh-agent-credentials:
43             users:
44                 - '{ssh-credentials}'
45
46     triggers:
47         - gerrit-trigger-patch-submitted:
48             name: '{project}'
49             branch: '{branch}'
50
51     builders:
52         - shell:
53             !include-raw-escape include-raw-csit-vpp-functional-virl.sh
54
55     publishers:
56         - archive-artifacts:
57             artifacts: 'report.html, log.html, output.xml'
58             latest-only: false
59
60         - robot-report:
61             output-path: ''
62
63 - job-template:
64     name: 'csit-vpp-perf-hw-{type}'
65
66     project-type: freestyle
67     node: verify
68     concurrent: false
69
70     logrotate:
71         daysToKeep: '{build-days-to-keep}'
72         numToKeep: '{build-num-to-keep}'
73         artifactDaysToKeep: '{build-artifact-days-to-keep}'
74         artifactNumToKeep: '{build-artifact-num-to-keep}'
75
76     parameters:
77         - project-parameter:
78             project: '{project}'
79         - gerrit-parameter:
80             branch: '{branch}'
81         - type-parameter:
82             type: '{type}'
83
84     scm:
85         - gerrit-trigger-scm:
86             credentials-id: '{ssh-credentials}'
87             refspec: '$GERRIT_REFSPEC'
88             choosing-strategy: 'gerrit'
89
90     wrappers:
91         - ssh-agent-credentials:
92             users:
93                 - '{ssh-credentials}'
94
95     triggers:
96         - gerrit-trigger-manually-triggered:
97             name: '{project}'
98             branch: '{branch}'
99             comment-trigger-value: 'verify-perf-{type}'
100
101     builders:
102         - shell:
103             !include-raw-escape jjb/csit/include-raw-csit-vpp-perf-hw.sh
104
105     publishers:
106         - archive-artifacts:
107             artifacts: 'report.html, log.html, output.xml, output_perf_data.xml'
108             latest-only: false
109
110         - robot-report:
111             output-path: ''
112
113         - plot:
114             - title: 'RFC2544 binary search with 64B, 1 worker-thread, rss=1, NDR'
115               yaxis: 'Packets Per Second'
116               group: '1_thread'
117               num-builds: '20'
118               keep-records: True
119               series:
120                   - file: 'output_perf_data.xml'
121                     format: xml
122                     xpath-type: 'nodeset'
123                     xpath: '//*[@framesize="64" and contains(@tags,"NDR") and @workerthreads="1"]'
124             - title: 'RFC2544 binary search with 64B, 1 worker-thread, rss=1, PDR=0.5%'
125               yaxis: 'Packets Per Second'
126               group: '1_thread'
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,"PDR") and @workerthreads="1"]'
134
135 - job-template:
136     name: 'csit-vpp-verify-weekly'
137     description: 'Purpose of this job is to validate CSIT code against verified vpp build and apply csit-verified tag in case of success.'
138
139     project-type: freestyle
140     node: verify
141     concurrent: false
142
143     logrotate:
144         daysToKeep: '{build-days-to-keep}'
145         numToKeep: '{build-num-to-keep}'
146         artifactDaysToKeep: '{build-artifact-days-to-keep}'
147         artifactNumToKeep: '{build-artifact-num-to-keep}'
148
149     parameters:
150         - project-parameter:
151             project: '{project}'
152         - gerrit-parameter:
153             branch: '{branch}'
154
155     scm:
156         - git-scm:
157             credentials-id: '{ssh-credentials}'
158             branch: 'master'
159
160     wrappers:
161         - ssh-agent-credentials:
162             users:
163                 - '{ssh-credentials}'
164
165     triggers:
166         - timed: '0 4 * * 0'
167
168         - gerrit-trigger-manually-triggered:
169             comment-trigger-value: 'csit-vpp-ref-verify'
170             name: '{project}'
171             branch: '{branch}'
172
173     builders:
174         - shell:
175             !include-raw-escape jjb/csit/include-raw-csit-vpp-verify-weekly.sh
176
177     publishers:
178         - archive-artifacts:
179             artifacts: 'csit/report.html, csit/log.html, csit/output.xml'
180             latest-only: false
181
182         - robot-report:
183             output-path: 'csit'
184
185         - git:
186                push-only-if-success: true
187                branches:
188                 - branch:
189                     remote: origin
190                     name: 'csit-verified-`date +%y%m%d`'
191
192 - job-template:
193     name: 'csit-vpp-master-verify-semiweekly'
194     description: 'Purpose of this job is to validate latest vpp build stored in nexus against verified CSIT codebase.'
195
196     project-type: freestyle
197     node: verify
198     concurrent: false
199
200     logrotate:
201         daysToKeep: '{build-days-to-keep}'
202         numToKeep: '{build-num-to-keep}'
203         artifactDaysToKeep: '{build-artifact-days-to-keep}'
204         artifactNumToKeep: '{build-artifact-num-to-keep}'
205
206     parameters:
207         - project-parameter:
208             project: '{project}'
209         - gerrit-parameter:
210             branch: '{branch}'
211
212     scm:
213         - git-scm:
214             credentials-id: '{ssh-credentials}'
215             branch: 'master'
216
217     wrappers:
218         - ssh-agent-credentials:
219             users:
220                 - '{ssh-credentials}'
221
222     triggers:
223         - timed: '0 4 * * 2,6'
224
225         - gerrit-trigger-manually-triggered:
226             comment-trigger-value: 'csit-verify-vpp'
227             name: '{project}'
228             branch: '{branch}'
229
230     builders:
231         - shell:
232             !include-raw-escape jjb/csit/include-raw-csit-vpp-master-verify-semiweekly.sh
233
234     publishers:
235         - archive-artifacts:
236             artifacts: 'csit/archive/*.*'
237             latest-only: false
238
239         - robot-report:
240             output-path: 'csit/archive'
241
242 - parameter:
243     name: test-type-parameter
244
245     parameters:
246         - string:
247             name: TYPE
248             default: '{type}'
249             description: "Test TYPE parameter if not given by trigger"