Merge "Update archive items path for csit-hc2vpp jobs"
[ci-management.git] / jjb / hc2vpp / hc2vpp-csit.yaml
1 - project:
2     name: hc2vpp-csit
3     description: 'jenkins jobs to test Hc2vpp features.'
4     jobs:
5         - 'hc2vpp-csit-integration-{stream}-{os}'
6         - 'hc2vpp-csit-verify-{stream}-{os}'
7         - 'hc2vpp-csit-integration-odl-{odl}-{stream}-{os}'
8         - 'hc2vpp-csit-verify-odl-{odl}-{stream}-{os}'
9     project: 'hc2vpp'
10     build-artifact-num-to-keep: 10
11     stream:
12         - master:
13             branch: 'master'
14             repo-stream-part: 'master'
15         - '1701':
16             branch: 'stable/1701'
17             repo-stream-part: 'stable.1701'
18         - '1704':
19             branch: 'stable/1704'
20             repo-stream-part: 'stable.1704'
21         - '1707':
22             branch: 'stable/1707'
23             repo-stream-part: 'stable.1707'
24     os:
25         - ubuntu1604:
26             repo-os-part: 'ubuntu.xenial.main'
27     odl:
28         - boron
29
30 - project:
31     name: csit-hc2vpp-perf
32     description: 'jenkins jobs to test Hc2vpp performance.'
33     jobs:
34         - 'hc2vpp-csit-perf-{stream}-{os}'
35     project: 'hc2vpp'
36     build-artifact-num-to-keep: 10
37     stream:
38         - master:
39             branch: 'master'
40             repo-stream-part: 'master'
41     os:
42         - ubuntu1604:
43             repo-os-part: 'ubuntu.xenial.main'
44     odl:
45         - boron
46
47 - job-template:
48     name: 'hc2vpp-csit-integration-{stream}-{os}'
49
50     project-type: freestyle
51     node: '{os}-basebuild-4c-4g'
52     concurrent: true
53
54     logrotate:
55         daysToKeep: '{build-days-to-keep}'
56         numToKeep: '{build-num-to-keep}'
57         artifactDaysToKeep: '{build-artifact-days-to-keep}'
58         artifactNumToKeep: '{build-artifact-num-to-keep}'
59
60     parameters:
61         - project-parameter:
62             project: '{project}'
63         - os-parameter:
64             os: '{os}'
65         - stream-parameter:
66             stream: '{stream}'
67
68     scm:
69         - git-scm:
70             credentials-id: 'jenkins-gerrit-credentials'
71             branch: '{branch}'
72
73     wrappers:
74         - fdio-infra-wrappers:
75             build-timeout: '{build-timeout}'
76
77     triggers:
78         - reverse:
79             jobs: 'hc2vpp-integration-{stream}-{os}'
80             result: 'success'
81
82     builders:
83         - shell:
84             !include-raw-escape: include-raw-hc2vpp-csit-integration.sh
85
86     publishers:
87         - archive-artifacts:
88             artifacts: 'csit/archive/*.*'
89             latest-only: false
90         - email-notification:
91             email-prefix: '[hc2vpp]'
92
93         - robot-report:
94             output-path: 'csit/archive'
95
96 - job-template:
97     name: 'hc2vpp-csit-verify-{stream}-{os}'
98
99     project-type: maven
100     node: '{os}-basebuild-4c-4g'
101     jdk: openjdk8-{os}
102     concurrent: true
103
104     logrotate:
105         daysToKeep: '{build-days-to-keep}'
106         numToKeep: '{build-num-to-keep}'
107         artifactDaysToKeep: '{build-artifact-days-to-keep}'
108         artifactNumToKeep: '{build-artifact-num-to-keep}'
109
110     parameters:
111         - project-parameter:
112             project: '{project}'
113         - gerrit-parameter:
114             branch: '{branch}'
115         - os-parameter:
116             os: '{os}'
117         - maven-project-parameter:
118             maven: 'mvn33-new'
119         - maven-exec:
120             maven-version: 'mvn33-new'
121         - stream-parameter:
122             stream: '{stream}'
123         - odl-parameter:
124             odl: '{odl}'
125
126     scm:
127         - gerrit-trigger-scm:
128             credentials-id: 'jenkins-gerrit-credentials'
129             refspec: '$GERRIT_REFSPEC'
130             choosing-strategy: 'gerrit'
131
132     wrappers:
133         - fdio-infra-wrappers:
134             build-timeout: '{build-timeout}'
135
136     triggers:
137         - gerrit:
138             server-name: 'Primary'
139             trigger-on:
140                 - comment-added-contains-event:
141                     comment-contains-value: 'verify-csit'
142             projects:
143               - project-compare-type: 'ANT'
144                 project-pattern: '{project}'
145                 branches:
146                   - branch-compare-type: 'ANT'
147                     branch-pattern: '**/{branch}'
148             skip-vote:
149                 successful: true
150                 failed: true
151                 unstable: true
152                 notbuilt: true
153
154     prebuilders:
155         - shell:
156             !include-raw-escape: include-raw-hc2vpp-csit-verify-prebuild.sh
157
158     maven:
159         maven-name: 'mvn33-new'
160         root-pom: 'pom.xml'
161         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -DskipTests -Dcheckstyle.skip=true'
162         maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
163         settings: 'hc2vpp-settings'
164         settings-type: cfp
165         global-settings: 'global-settings'
166         global-settings-type: cfp
167
168     postbuilders:
169         - shell:
170             !include-raw-escape: include-raw-hc2vpp-csit-verify.sh
171
172     publishers:
173         - archive-artifacts:
174             artifacts: 'csit/archive/*.*'
175             latest-only: false
176         - email-notification:
177             email-prefix: '[hc2vpp]'
178
179         - robot-report:
180             output-path: 'csit/archive'
181
182 - job-template:
183     name: 'hc2vpp-csit-integration-odl-{odl}-{stream}-{os}'
184
185     project-type: freestyle
186     node: '{os}-basebuild-4c-4g'
187     concurrent: true
188
189     logrotate:
190         daysToKeep: '{build-days-to-keep}'
191         numToKeep: '{build-num-to-keep}'
192         artifactDaysToKeep: '{build-artifact-days-to-keep}'
193         artifactNumToKeep: '{build-artifact-num-to-keep}'
194
195     parameters:
196         - project-parameter:
197             project: '{project}'
198         - os-parameter:
199             os: '{os}'
200         - stream-parameter:
201             stream: '{stream}'
202         - odl-parameter:
203             odl: '{odl}'
204
205     scm:
206         - git-scm:
207             credentials-id: 'jenkins-gerrit-credentials'
208             branch: '{branch}'
209
210     wrappers:
211         - fdio-infra-wrappers:
212             build-timeout: '{build-timeout}'
213
214     triggers:
215         - reverse:
216             jobs: 'hc2vpp-integration-{stream}-{os}'
217             result: 'success'
218
219     builders:
220         - shell:
221             !include-raw-escape: include-raw-hc2vpp-csit-integration-odl.sh
222
223     publishers:
224         - archive-artifacts:
225             artifacts: 'csit/archive/*.*'
226             latest-only: false
227         - email-notification:
228             email-prefix: '[hc2vpp]'
229
230         - robot-report:
231             output-path: 'csit/archive'
232
233 - job-template:
234     name: 'hc2vpp-csit-verify-odl-{odl}-{stream}-{os}'
235
236     project-type: maven
237     node: '{os}-basebuild-4c-4g'
238     jdk: openjdk8-{os}
239     concurrent: true
240
241     logrotate:
242         daysToKeep: '{build-days-to-keep}'
243         numToKeep: '{build-num-to-keep}'
244         artifactDaysToKeep: '{build-artifact-days-to-keep}'
245         artifactNumToKeep: '{build-artifact-num-to-keep}'
246
247     parameters:
248         - project-parameter:
249             project: '{project}'
250         - gerrit-parameter:
251             branch: '{branch}'
252         - os-parameter:
253             os: '{os}'
254         - maven-project-parameter:
255             maven: 'mvn33-new'
256         - maven-exec:
257             maven-version: 'mvn33-new'
258         - stream-parameter:
259             stream: '{stream}'
260         - odl-parameter:
261             odl: '{odl}'
262
263     scm:
264         - gerrit-trigger-scm:
265             credentials-id: 'jenkins-gerrit-credentials'
266             refspec: '$GERRIT_REFSPEC'
267             choosing-strategy: 'gerrit'
268
269     wrappers:
270         - fdio-infra-wrappers:
271             build-timeout: '{build-timeout}'
272
273     triggers:
274         - gerrit:
275             server-name: 'Primary'
276             trigger-on:
277                 - comment-added-contains-event:
278                     comment-contains-value: 'verify-csit'
279             projects:
280               - project-compare-type: 'ANT'
281                 project-pattern: '{project}'
282                 branches:
283                   - branch-compare-type: 'ANT'
284                     branch-pattern: '**/{branch}'
285             skip-vote:
286                 successful: true
287                 failed: true
288                 unstable: true
289                 notbuilt: true
290
291     prebuilders:
292         - shell:
293             !include-raw-escape: include-raw-hc2vpp-csit-verify-prebuild.sh
294
295     maven:
296         maven-name: 'mvn33-new'
297         root-pom: 'pom.xml'
298         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -DskipTests -Dcheckstyle.skip=true'
299         maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
300         settings: 'hc2vpp-settings'
301         settings-type: cfp
302         global-settings: 'global-settings'
303         global-settings-type: cfp
304
305     postbuilders:
306         - shell:
307             !include-raw-escape: include-raw-hc2vpp-csit-verify-odl.sh
308
309     publishers:
310         - archive-artifacts:
311             artifacts: 'csit/archive/*.*'
312             latest-only: false
313         - email-notification:
314             email-prefix: '[hc2vpp]'
315
316         - robot-report:
317             output-path: 'csit/archive'
318
319 - job-template:
320     name: 'hc2vpp-csit-perf-{stream}-{os}'
321
322     project-type: freestyle
323     node: '{os}-basebuild-4c-4g'
324     concurrent: false
325
326     logrotate:
327         daysToKeep: '{build-days-to-keep}'
328         numToKeep: '{build-num-to-keep}'
329         artifactDaysToKeep: '{build-artifact-days-to-keep}'
330         artifactNumToKeep: '{build-artifact-num-to-keep}'
331
332     parameters:
333         - project-parameter:
334             project: '{project}'
335         - os-parameter:
336             os: '{os}'
337         - stream-parameter:
338             stream: '{stream}'
339         - odl-parameter:
340             odl: '{odl}'
341
342     scm:
343         - gerrit-trigger-scm:
344             credentials-id: 'jenkins-gerrit-credentials'
345             refspec: '$GERRIT_REFSPEC'
346             choosing-strategy: 'gerrit'
347
348     wrappers:
349         - fdio-infra-wrappers:
350             build-timeout: '{build-timeout}'
351
352     triggers:
353         - gerrit:
354             server-name: 'Primary'
355             trigger-on:
356                 - comment-added-contains-event:
357                     comment-contains-value: 'verify-perf'
358
359             projects:
360               - project-compare-type: 'ANT'
361                 project-pattern: '{project}'
362                 branches:
363                   - branch-compare-type: 'ANT'
364                     branch-pattern: '**/{branch}'
365             skip-vote:
366                 successful: false
367                 failed: false
368                 unstable: false
369                 notbuilt: false
370
371     builders:
372         - shell:
373             !include-raw-escape: include-raw-hc2vpp-csit-perf.sh
374
375     publishers:
376         - archive-artifacts:
377             artifacts: 'csit/archive/*.*'
378             latest-only: false
379
380         - robot-report:
381             output-path: 'csit/archive'
382
383         - fdio-infra-shiplogs:
384             maven-version: 'mvn33-new'
385
386 - parameter:
387     name: odl-parameter
388     parameters:
389         - string:
390             name: ODL
391             default: '{odl}'
392             description: "ODL version parameter."