CSIT-577 Add Honeycomb test jobs with ODL
[ci-management.git] / jjb / hc2vpp / csit-hc2vpp.yaml
1 - project:
2     name: csit-hc2vpp
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     os:
22         - ubuntu1604:
23             repo-os-part: 'ubuntu.xenial.main'
24     odl:
25         - boron
26
27 - job-template:
28     name: 'hc2vpp-csit-integration-{stream}-{os}'
29
30     project-type: freestyle
31     node: '{os}-basebuild-4c-4g'
32     concurrent: true
33
34     logrotate:
35         daysToKeep: '{build-days-to-keep}'
36         numToKeep: '{build-num-to-keep}'
37         artifactDaysToKeep: '{build-artifact-days-to-keep}'
38         artifactNumToKeep: '{build-artifact-num-to-keep}'
39
40     parameters:
41         - project-parameter:
42             project: '{project}'
43         - os-parameter:
44             os: '{os}'
45         - stream-parameter:
46             stream: '{stream}'
47
48     scm:
49         - git-scm:
50             credentials-id: 'jenkins-gerrit-credentials'
51             branch: '{branch}'
52
53     wrappers:
54         - fdio-infra-wrappers:
55             build-timeout: '{build-timeout}'
56
57     triggers:
58         - reverse:
59             jobs: 'hc2vpp-integration-{stream}-{os}'
60             result: 'success'
61
62     builders:
63         - shell:
64             !include-raw-escape: include-raw-hc2vpp-csit-integration.sh
65
66     publishers:
67         - archive-artifacts:
68             artifacts: 'csit/report.html, csit/log.html, csit/output.xml, csit/honeycomb.log'
69             latest-only: false
70         - email-notification:
71             email-prefix: '[hc2vpp]'
72
73         - robot-report:
74             output-path: 'csit'
75
76 - job-template:
77     name: 'hc2vpp-csit-verify-{stream}-{os}'
78
79     project-type: maven
80     node: '{os}-basebuild-4c-4g'
81     jdk: openjdk8-{os}
82     concurrent: true
83
84     logrotate:
85         daysToKeep: '{build-days-to-keep}'
86         numToKeep: '{build-num-to-keep}'
87         artifactDaysToKeep: '{build-artifact-days-to-keep}'
88         artifactNumToKeep: '{build-artifact-num-to-keep}'
89
90     parameters:
91         - project-parameter:
92             project: '{project}'
93         - gerrit-parameter:
94             branch: '{branch}'
95         - os-parameter:
96             os: '{os}'
97         - maven-project-parameter:
98             maven: 'mvn33-new'
99         - maven-exec:
100             maven-version: 'mvn33-new'
101         - stream-parameter:
102             stream: '{stream}'
103         - odl-parameter:
104             odl: '{odl}'
105
106     scm:
107         - gerrit-trigger-scm:
108             credentials-id: 'jenkins-gerrit-credentials'
109             refspec: '$GERRIT_REFSPEC'
110             choosing-strategy: 'gerrit'
111
112     wrappers:
113         - fdio-infra-wrappers:
114             build-timeout: '{build-timeout}'
115
116     triggers:
117         - gerrit:
118             server-name: 'Primary'
119             trigger-on:
120                 - comment-added-contains-event:
121                     comment-contains-value: 'verify-csit'
122             projects:
123               - project-compare-type: 'ANT'
124                 project-pattern: '{project}'
125                 branches:
126                   - branch-compare-type: 'ANT'
127                     branch-pattern: '**/{branch}'
128             skip-vote:
129                 successful: true
130                 failed: true
131                 unstable: true
132                 notbuilt: true
133
134     prebuilders:
135         - shell:
136             !include-raw-escape: include-raw-hc2vpp-csit-verify-prebuild.sh
137
138     maven:
139         maven-name: 'mvn33-new'
140         root-pom: 'pom.xml'
141         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -DskipTests -Dcheckstyle.skip=true'
142         maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
143         settings: 'hc2vpp-settings'
144         settings-type: cfp
145         global-settings: 'global-settings'
146         global-settings-type: cfp
147
148     postbuilders:
149         - shell:
150             !include-raw-escape: include-raw-hc2vpp-csit-verify.sh
151
152     publishers:
153         - archive-artifacts:
154             artifacts: 'csit/report.html, csit/log.html, csit/output.xml, csit/honeycomb.log'
155             latest-only: false
156         - email-notification:
157             email-prefix: '[hc2vpp]'
158
159         - robot-report:
160             output-path: 'csit'
161
162 - job-template:
163     name: 'hc2vpp-csit-integration-odl-{odl}-{stream}-{os}'
164
165     project-type: freestyle
166     node: '{os}-basebuild-4c-4g'
167     concurrent: true
168
169     logrotate:
170         daysToKeep: '{build-days-to-keep}'
171         numToKeep: '{build-num-to-keep}'
172         artifactDaysToKeep: '{build-artifact-days-to-keep}'
173         artifactNumToKeep: '{build-artifact-num-to-keep}'
174
175     parameters:
176         - project-parameter:
177             project: '{project}'
178         - os-parameter:
179             os: '{os}'
180         - stream-parameter:
181             stream: '{stream}'
182         - odl-parameter:
183             odl: '{odl}'
184
185     scm:
186         - git-scm:
187             credentials-id: 'jenkins-gerrit-credentials'
188             branch: '{branch}'
189
190     wrappers:
191         - fdio-infra-wrappers:
192             build-timeout: '{build-timeout}'
193
194     triggers:
195         - reverse:
196             jobs: 'hc2vpp-integration-{stream}-{os}'
197             result: 'success'
198
199     builders:
200         - shell:
201             !include-raw-escape: include-raw-hc2vpp-csit-integration-odl.sh
202
203     publishers:
204         - archive-artifacts:
205             artifacts: 'csit/report.html, csit/log.html, csit/output.xml, csit/honeycomb.log'
206             latest-only: false
207         - email-notification:
208             email-prefix: '[hc2vpp]'
209
210         - robot-report:
211             output-path: 'csit'
212
213 - job-template:
214     name: 'hc2vpp-csit-verify-odl-{odl}-{stream}-{os}'
215
216     project-type: maven
217     node: '{os}-basebuild-4c-4g'
218     jdk: openjdk8-{os}
219     concurrent: true
220
221     logrotate:
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         - os-parameter:
233             os: '{os}'
234         - maven-project-parameter:
235             maven: 'mvn33-new'
236         - maven-exec:
237             maven-version: 'mvn33-new'
238         - stream-parameter:
239             stream: '{stream}'
240         - odl-parameter:
241             odl: '{odl}'
242
243     scm:
244         - gerrit-trigger-scm:
245             credentials-id: 'jenkins-gerrit-credentials'
246             refspec: '$GERRIT_REFSPEC'
247             choosing-strategy: 'gerrit'
248
249     wrappers:
250         - fdio-infra-wrappers:
251             build-timeout: '{build-timeout}'
252
253     triggers:
254         - gerrit:
255             server-name: 'Primary'
256             trigger-on:
257                 - comment-added-contains-event:
258                     comment-contains-value: 'verify-csit'
259             projects:
260               - project-compare-type: 'ANT'
261                 project-pattern: '{project}'
262                 branches:
263                   - branch-compare-type: 'ANT'
264                     branch-pattern: '**/{branch}'
265             skip-vote:
266                 successful: true
267                 failed: true
268                 unstable: true
269                 notbuilt: true
270
271     prebuilders:
272         - shell:
273             !include-raw-escape: include-raw-hc2vpp-csit-verify-prebuild.sh
274
275     maven:
276         maven-name: 'mvn33-new'
277         root-pom: 'pom.xml'
278         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -DskipTests -Dcheckstyle.skip=true'
279         maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
280         settings: 'hc2vpp-settings'
281         settings-type: cfp
282         global-settings: 'global-settings'
283         global-settings-type: cfp
284
285     postbuilders:
286         - shell:
287             !include-raw-escape: include-raw-hc2vpp-csit-verify-odl.sh
288
289     publishers:
290         - archive-artifacts:
291             artifacts: 'csit/report.html, csit/log.html, csit/output.xml, csit/honeycomb.log'
292             latest-only: false
293         - email-notification:
294             email-prefix: '[hc2vpp]'
295
296         - robot-report:
297             output-path: 'csit'
298
299 - parameter:
300     name: odl-parameter
301     parameters:
302         - string:
303             name: ODL
304             default: '{odl}'
305             description: "ODL version parameter."