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