Update automated project templates
[releng/builder.git] / jjb / of-config / of-config.yaml
1 # REMOVE THIS LINE IF YOU WANT TO CUSTOMIZE ANYTHING BELOW
2 # Otherwise this file will be automatically overwritten by the template
3 # autobuilder.
4
5 # ODL Releng build templates
6 - project:
7     name: of-config
8     jobs:
9         - 'of-config-verify-{stream}'
10         - 'of-config-merge-{stream}'
11         - 'of-config-daily-{stream}'
12         - 'of-config-distribution-{stream}'
13         - 'of-config-integration-{stream}'
14         - 'of-config-sonar'
15         - 'of-config-clm-{stream}'
16
17
18     # stream:    release stream (eg. stable-lithium or beryllium)
19     # branch:    git branch (eg. stable/lithium or master)
20     stream:
21         - beryllium:
22             branch: 'master'
23             jdk: openjdk7
24             jdks:
25                 - openjdk7
26                 - openjdk8
27
28     project: 'of-config'
29
30 # For the Job templates below replace instances of:
31 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
32 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
33 # MAVEN_GOALS with your maven goals to build
34 # MAVEN_OPTS with your maven options to build
35
36 - job-template:
37     name: 'of-config-verify-{stream}'
38
39     # Job template for ODL verify jobs
40     #
41     # The purpose of this job template is to setup a ODL verify job
42     #
43     # Required Variables:
44     #     stream:    release stream (eg. stable-lithium or beryllium)
45     #     branch:    git branch (eg. stable/lithium or master)
46
47     project-type: matrix
48     node: matrix_master
49     concurrent: true
50
51     axes:
52         - axis:
53             type: slave
54             name: nodes
55             values:
56                 - dynamic_verify
57         - axis:
58             type: jdk
59             values: '{obj:jdks}'
60
61     logrotate:
62         daysToKeep: '{build-days-to-keep}'
63         numToKeep: '{build-num-to-keep}'
64         artifactDaysToKeep: '{build-artifact-days-to-keep}'
65         artifactNumToKeep: '{build-artifact-num-to-keep}'
66
67     parameters:
68         - project-parameter:
69             project: '{project}'
70         - gerrit-parameter:
71             branch: '{branch}'
72
73     scm:
74         - gerrit-trigger-scm:
75             credentials-id: '{ssh-credentials}'
76             refspec: '$GERRIT_REFSPEC'
77             choosing-strategy: 'gerrit'
78
79     wrappers:
80         - build-timeout
81         - ssh-agent-credentials:
82             users:
83                 - '{ssh-credentials}'
84
85     triggers:
86         - gerrit-trigger-patch-submitted:
87             name: 'of-config'
88             branch: '{branch}'
89
90     builders:
91         - wipe-org-opendaylight-repo
92         - jacoco-nojava-workaround
93         - provide-maven-settings:
94             global-settings-file: '{odl-global-settings}'
95             settings-file: '{of-config-settings}'
96         - maven-target:
97             maven-version: '{mvn33}'
98             pom: 'pom.xml'
99             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dstream={stream}'
100             java-opts:
101                 - '-Xmx1024m -XX:MaxPermSize=256m'
102             settings: '{of-config-settings}'
103             global-settings: '{odl-global-settings}'
104
105     publishers:
106         - findbugs
107         - email-notification:
108             email-prefix: '[of-config]'
109         - jacoco-report
110
111 - job-template:
112     name: 'of-config-merge-{stream}'
113
114     # Job template for ODL merge jobs
115     #
116     # The purpose of this job template is to setup a ODL merge job
117     # and deploy artifacts to Nexus.
118     #
119     # Required Variables:
120     #     stream:    release stream (eg. stable-lithium or beryllium)
121     #     branch:    git branch (eg. stable/lithium or master)
122
123     project-type: maven
124     node: dynamic_merge
125     jdk: '{jdk}'
126
127     logrotate:
128         daysToKeep: '{build-days-to-keep}'
129         numToKeep: '{build-num-to-keep}'
130         artifactDaysToKeep: '{build-artifact-days-to-keep}'
131         artifactNumToKeep: '{build-artifact-num-to-keep}'
132
133     parameters:
134         - project-parameter:
135             project: '{project}'
136
137     scm:
138         - gerrit-trigger-scm:
139             credentials-id: '{ssh-credentials}'
140             refspec: ''
141             choosing-strategy: 'default'
142
143     wrappers:
144         - build-timeout
145         - ssh-agent-credentials:
146             users:
147                 - '{ssh-credentials}'
148
149     triggers:
150         - gerrit-trigger-patch-merged:
151             name: 'of-config'
152             branch: '{branch}'
153
154     prebuilders:
155         - wipe-org-opendaylight-repo
156         - jacoco-nojava-workaround
157         - provide-maven-settings:
158             global-settings-file: '{odl-global-settings}'
159             settings-file: '{of-config-settings}'
160
161     maven:
162         maven-name: '{mvn33}'
163         root-pom: 'pom.xml'
164         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Dstream={stream}'
165         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
166         settings: '{of-config-settings}'
167         global-settings: '{odl-global-settings}'
168         post-step-run-condition: UNSTABLE
169
170     postbuilders:
171         - conditional-step:
172             condition-kind: file-exists
173             condition-filename: deploy-site.xml
174             condition-basedir: workspace
175
176             # The strategy here is intentional to run Maven site:deploy twice
177             # once using regular pom.xml to produce a staged-site which is
178             # then used by deploy-site.xml to push to Nexus. This is a
179             # workaround to Maven Site's default linking code which creates
180             # incorrect URLs for sites due to auto-detection assuming your
181             # project is configured in a certain way which ODL is not.
182             steps:
183             - maven-target:
184                 maven-version: '{mvn33}'
185                 pom: pom.xml
186                 goals: 'site:deploy -Dstream={stream}'
187                 java-opts:
188                     - '-Xmx2g'
189                 settings: '{of-config-settings}'
190                 global-settings: '{odl-global-settings}'
191             - maven-target:
192                 maven-version: '{mvn33}'
193                 pom: deploy-site.xml
194                 goals: 'site:deploy -Dstream={stream}'
195                 java-opts:
196                     - '-Xmx2g'
197                 settings: '{of-config-settings}'
198                 global-settings: '{odl-global-settings}'
199
200     reporters:
201         - findbugs
202
203     publishers:
204         - email-notification:
205             email-prefix: '[of-config]'
206         - maven-deploy:
207             id: ''
208             unique-version: true
209             deploy-unstable: false
210         - jacoco-report
211
212 - job-template:
213     name: 'of-config-daily-{stream}'
214
215     # Job template for daily builders
216     #
217     # The purpose of this job template is to setup a daily/nightly
218     # builder and pushes to Sonar analysis.
219     #
220     # Required Variables:
221     #     stream:    release stream (eg. stable-lithium or beryllium)
222     #     branch:    git branch (eg. stable/lithium or master)
223
224     project-type: maven
225     node: dynamic_verify
226     jdk: '{jdk}'
227
228     logrotate:
229         daysToKeep: '{build-days-to-keep}'
230         numToKeep: '{build-num-to-keep}'
231         artifactDaysToKeep: '{build-artifact-days-to-keep}'
232         artifactNumToKeep: '{build-artifact-num-to-keep}'
233
234     parameters:
235         - project-parameter:
236             project: '{project}'
237
238     scm:
239         - git-scm:
240             credentials-id: '{ssh-credentials}'
241             refspec: ''
242             branch: '{branch}'
243
244     wrappers:
245         - build-timeout
246         - ssh-agent-credentials:
247             users:
248                 - '{ssh-credentials}'
249
250     triggers:
251         - timed: 'H H * * *'
252
253     prebuilders:
254         - wipe-org-opendaylight-repo
255         - jacoco-nojava-workaround
256         - provide-maven-settings:
257             global-settings-file: '{odl-global-settings}'
258             settings-file: '{of-config-settings}'
259
260     maven:
261         maven-name: '{mvn33}'
262         root-pom: 'pom.xml'
263         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
264         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
265         settings: '{of-config-settings}'
266         global-settings: '{odl-global-settings}'
267
268     reporters:
269         - findbugs
270
271     publishers:
272         - email-notification:
273             email-prefix: '[of-config]'
274         - jacoco-report
275
276 - job-template:
277     name: 'of-config-distribution-{stream}'
278
279     # Required variables:
280     #     stream:    release stream (eg. stable-lithium or beryllium)
281     #     branch:    git branch (eg. stable/lithium or master)
282
283     project-type: maven
284     node: dynamic_merge
285     jdk: '{jdk}'
286
287     logrotate:
288         daysToKeep: '{build-days-to-keep}'
289         numToKeep: '{build-num-to-keep}'
290         artifactDaysToKeep: '{build-artifact-days-to-keep}'
291         artifactNumToKeep: '{build-artifact-num-to-keep}'
292
293     parameters:
294         - project-parameter:
295             project: 'integration'
296
297     scm:
298         - git-scm:
299             credentials-id: '{ssh-credentials}'
300             refspec: ''
301             branch: '{branch}'
302
303     wrappers:
304         - build-timeout
305         - ssh-agent-credentials:
306             users:
307                 - '{ssh-credentials}'
308
309     triggers:
310         - reverse:
311             jobs: '{project}-merge-{stream}'
312             result: 'success'
313
314     prebuilders:
315         - wipe-org-opendaylight-repo
316         - provide-maven-settings:
317             global-settings-file: '{odl-global-settings}'
318             settings-file: '{of-config-settings}'
319
320     maven:
321         maven-name: '{mvn33}'
322         root-pom: 'pom.xml'
323         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
324         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
325         settings: '{integration-settings}'
326         global-settings: '{odl-global-settings}'
327
328     publishers:
329         - email-notification:
330             email-prefix: '[{project}]'
331         - maven-deploy:
332             id: ''
333             unique-version: true
334             deploy-unstable: false
335
336 - job-template:
337     name: 'of-config-integration-{stream}'
338     disabled: false
339
340     # Job template for ODL integration verify jobs
341     #
342     # This is similar to a normal verify job, but it runs
343     # when a project that's a dependency of your project
344     # is successfully built.
345     #
346     # Required Variables:
347     #     stream:    release stream (eg. stable-lithium or beryllium)
348     #     branch:    git branch (eg. stable/lithium or master)
349
350     project-type: maven
351     node: dynamic_merge
352     jdk: '{jdk}'
353
354     logrotate:
355         daysToKeep: '{build-days-to-keep}'
356         numToKeep: '{build-num-to-keep}'
357         artifactDaysToKeep: '{build-artifact-days-to-keep}'
358         artifactNumToKeep: '{build-artifact-num-to-keep}'
359
360     parameters:
361         - project-parameter:
362             project: '{project}'
363
364     scm:
365         - git-scm:
366             credentials-id: '{ssh-credentials}'
367             refspec: ''
368             branch: '{branch}'
369
370     wrappers:
371         - build-timeout
372         - ssh-agent-credentials:
373             users:
374                 - '{ssh-credentials}'
375
376     triggers:
377         - reverse:
378             jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},netconf-merge-{stream}'
379             result: 'success'
380
381     prebuilders:
382         - wipe-org-opendaylight-repo
383         - jacoco-nojava-workaround
384         - provide-maven-settings:
385             global-settings-file: '{odl-global-settings}'
386             settings-file: '{of-config-settings}'
387
388     maven:
389         maven-name: '{mvn33}'
390         root-pom: 'pom.xml'
391         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
392         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
393         settings: '{of-config-settings}'
394         global-settings: '{odl-global-settings}'
395
396     reporters:
397         - findbugs
398
399     publishers:
400         - email-notification:
401             email-prefix: '[of-config] [controller] [yangtools] [odlparent] [netconf]'
402         - jacoco-report
403
404 - job-template:
405     name: 'of-config-sonar'
406
407     project-type: maven
408     node: dynamic_verify
409     jdk: 'openjdk7'
410
411     logrotate:
412         daysToKeep: '7'
413         numToKeep: '10'
414         artifactDaysToKeep: '1'
415         artifactNumToKeep: '1'
416
417     parameters:
418         - project-parameter:
419             project: '{project}'
420
421     scm:
422         - git-scm:
423             credentials-id: '{ssh-credentials}'
424             refspec: ''
425             branch: 'master'
426
427     wrappers:
428         - build-timeout
429         - ssh-agent-credentials:
430             users:
431                 - '{ssh-credentials}'
432
433     triggers:
434         - timed: 'H H * * *'
435         - gerrit-trigger-patch-sonar:
436             name: 'of-config'
437
438     prebuilders:
439         - wipe-org-opendaylight-repo
440         - jacoco-nojava-workaround
441         - provide-maven-settings:
442             global-settings-file: '{odl-global-settings}'
443             settings-file: '{of-config-settings}'
444
445     maven:
446         maven-name: '{mvn33}'
447         root-pom: 'pom.xml'
448         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dsonar'
449         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
450         settings: '{of-config-settings}'
451         global-settings: '{odl-global-settings}'
452
453     reporters:
454         - findbugs
455
456     publishers:
457         - sonar:
458             language: 'java'
459             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
460         - email-notification:
461             email-prefix: '[of-config]'
462         - jacoco-report
463
464 - job-template:
465     name: 'of-config-clm-{stream}'
466
467     project-type: maven
468     node: dynamic_verify
469     jdk: '{jdk}'
470
471     logrotate:
472         daysToKeep: '{build-days-to-keep}'
473         numToKeep: '{build-num-to-keep}'
474         artifactDaysToKeep: '{build-artifact-days-to-keep}'
475         artifactNumToKeep: '{build-artifact-num-to-keep}'
476
477     parameters:
478         - project-parameter:
479             project: '{project}'
480
481     scm:
482         - git-scm:
483             credentials-id: '{ssh-credentials}'
484             refspec: ''
485             branch: '{branch}'
486
487     wrappers:
488         - build-timeout
489         - ssh-agent-credentials:
490             users:
491                 - '{ssh-credentials}'
492
493     triggers:
494         - timed: '@weekly'
495
496     prebuilders:
497         - wipe-org-opendaylight-repo
498         - provide-maven-settings:
499             global-settings-file: '{odl-global-settings}'
500             settings-file: '{of-config-settings}'
501
502     maven:
503         maven-name: '{mvn33}'
504         root-pom: 'pom.xml'
505         goals: 'com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
506         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
507         settings: '{of-config-settings}'
508         global-settings: '{odl-global-settings}'
509
510     postbuilders:
511         - check-clm:
512             application-name: of-config
513
514     publishers:
515         - email-notification:
516             email-prefix: '[of-config]'
517