d7042488a4a5df71a3931f0ed9c191ea4a788d2a
[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'
108             latest-only: false
109
110         - robot-report:
111             output-path: ''
112
113 - job-template:
114     name: 'csit-vpp-verify-weekly'
115     description: 'Purpose of this job is to validate CSIT code against verified vpp build and apply csit-verified tag in case of success.'
116
117     project-type: freestyle
118     node: verify
119     concurrent: false
120
121     logrotate:
122         daysToKeep: '{build-days-to-keep}'
123         numToKeep: '{build-num-to-keep}'
124         artifactDaysToKeep: '{build-artifact-days-to-keep}'
125         artifactNumToKeep: '{build-artifact-num-to-keep}'
126
127     parameters:
128         - project-parameter:
129             project: '{project}'
130         - gerrit-parameter:
131             branch: '{branch}'
132
133     scm:
134         - git-scm:
135             credentials-id: '{ssh-credentials}'
136             branch: 'master'
137
138     wrappers:
139         - ssh-agent-credentials:
140             users:
141                 - '{ssh-credentials}'
142
143     triggers:
144         - timed: '0 4 * * 0'
145
146         - gerrit-trigger-manually-triggered:
147             comment-trigger-value: 'csit-vpp-ref-verify'
148             name: '{project}'
149             branch: '{branch}'
150
151     builders:
152         - shell:
153             !include-raw-escape jjb/csit/include-raw-csit-vpp-verify-weekly.sh
154
155     publishers:
156         - archive-artifacts:
157             artifacts: 'csit/report.html, csit/log.html, csit/output.xml'
158             latest-only: false
159
160         - robot-report:
161             output-path: 'csit'
162
163         - git:
164                push-only-if-success: true
165                tags:
166                    - tag:
167                        remote: origin
168                        name: "csit-verified"
169                        message: "Verified CSIT version for VPP testing"
170                        create-tag: true
171                        update-tag: true
172
173 - job-template:
174     name: 'csit-vpp-master-verify-semiweekly'
175     description: 'Purpose of this job is to validate latest vpp build stored in nexus against verified CSIT codebase.'
176
177     project-type: freestyle
178     node: verify
179     concurrent: false
180
181     logrotate:
182         daysToKeep: '{build-days-to-keep}'
183         numToKeep: '{build-num-to-keep}'
184         artifactDaysToKeep: '{build-artifact-days-to-keep}'
185         artifactNumToKeep: '{build-artifact-num-to-keep}'
186
187     parameters:
188         - project-parameter:
189             project: '{project}'
190         - gerrit-parameter:
191             branch: '{branch}'
192
193     scm:
194         - git-scm:
195             credentials-id: '{ssh-credentials}'
196             branch: 'master'
197
198     wrappers:
199         - ssh-agent-credentials:
200             users:
201                 - '{ssh-credentials}'
202
203     triggers:
204         - timed: '0 4 * * 2,6'
205
206         - gerrit-trigger-manually-triggered:
207             comment-trigger-value: 'csit-verify-vpp'
208             name: '{project}'
209             branch: '{branch}'
210
211     builders:
212         - shell:
213             !include-raw-escape jjb/csit/include-raw-csit-vpp-master-verify-semiweekly.sh
214
215     publishers:
216         - archive-artifacts:
217             artifacts: 'csit/report.html, csit/log.html, csit/output.xml'
218             latest-only: false
219
220         - robot-report:
221             output-path: 'csit'
222
223 - parameter:
224     name: test-type-parameter
225
226     parameters:
227         - string:
228             name: TYPE
229             default: '{type}'
230             description: "Test TYPE parameter if not given by trigger"