c090c2f3aec191749a95316ffc6106f027d779d7
[releng/builder.git] / jjb / reservation / reservation.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: reservation
8     jobs:
9         - 'reservation-verify-{stream}'
10         - 'reservation-merge-{stream}'
11         - 'reservation-periodic-{stream}'
12         - 'reservation-distribution-{stream}'
13         - 'reservation-integration-{stream}'
14         - 'reservation-sonar'
15         - 'reservation-clm-{stream}'
16         - 'reservation-validate-autorelease-{stream}'
17
18
19     # stream:    release stream (eg. stable-lithium or beryllium)
20     # branch:    git branch (eg. stable/lithium or master)
21     stream:
22         - beryllium:
23             branch: 'master'
24             jdk: openjdk7
25             jdks:
26                 - openjdk7
27                 - openjdk8
28             disable_autorelease: False
29         - pre-boron:
30             branch: 'pre-boron'
31             jdk: openjdk7
32             jdks:
33                 - openjdk7
34                 - openjdk8
35             disable_autorelease: True
36         - stable-lithium:
37             branch: 'stable/lithium'
38             jdk: openjdk7
39             jdks:
40                 - openjdk7
41             disable_autorelease: True
42
43     project: 'reservation'
44
45 # For the Job templates below replace instances of:
46 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
47 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
48 # MAVEN_GOALS with your maven goals to build
49 # MAVEN_OPTS with your maven options to build
50
51 - job-template:
52     name: 'reservation-verify-{stream}'
53
54     # Job template for ODL verify jobs
55     #
56     # The purpose of this job template is to setup a ODL verify job
57     #
58     # Required Variables:
59     #     stream:    release stream (eg. stable-lithium or beryllium)
60     #     branch:    git branch (eg. stable/lithium or master)
61
62     project-type: matrix
63     node: matrix_master
64     concurrent: true
65
66     axes:
67         - axis:
68             type: slave
69             name: nodes
70             values:
71                 - dynamic_verify
72         - axis:
73             type: jdk
74             values: '{obj:jdks}'
75
76     logrotate:
77         daysToKeep: '{build-days-to-keep}'
78         numToKeep: '{build-num-to-keep}'
79         artifactDaysToKeep: '{build-artifact-days-to-keep}'
80         artifactNumToKeep: '{build-artifact-num-to-keep}'
81
82     parameters:
83         - project-parameter:
84             project: '{project}'
85         - gerrit-parameter:
86             branch: '{branch}'
87         - gerrit-refspec-parameter:
88             refspec: 'refs/heads/{branch}'
89
90     scm:
91         - gerrit-trigger-scm:
92             credentials-id: '{ssh-credentials}'
93             refspec: '$GERRIT_REFSPEC'
94             choosing-strategy: 'gerrit'
95
96     wrappers:
97         - build-timeout
98         - ssh-agent-credentials:
99             users:
100                 - '{ssh-credentials}'
101
102     triggers:
103         - gerrit-trigger-patch-submitted:
104             name: 'reservation'
105             branch: '{branch}'
106
107     builders:
108         - wipe-org-opendaylight-repo
109         - jacoco-nojava-workaround
110         - provide-maven-settings:
111             global-settings-file: '{odl-global-settings}'
112             settings-file: '{reservation-settings}'
113         - maven-target:
114             maven-version: '{mvn33}'
115             pom: 'pom.xml'
116             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dstream={stream}'
117             java-opts:
118                 - '-Xmx1024m -XX:MaxPermSize=256m'
119             settings: '{reservation-settings}'
120             global-settings: '{odl-global-settings}'
121
122     publishers:
123         - findbugs
124         - email-notification:
125             email-prefix: '[reservation]'
126         - jacoco-report
127
128 - job-template:
129     name: 'reservation-merge-{stream}'
130
131     # Job template for ODL merge jobs
132     #
133     # The purpose of this job template is to setup a ODL merge job
134     # and deploy artifacts to Nexus.
135     #
136     # Required Variables:
137     #     stream:    release stream (eg. stable-lithium or beryllium)
138     #     branch:    git branch (eg. stable/lithium or master)
139
140     project-type: maven
141     node: dynamic_merge
142     jdk: '{jdk}'
143
144     logrotate:
145         daysToKeep: '{build-days-to-keep}'
146         numToKeep: '{build-num-to-keep}'
147         artifactDaysToKeep: '{build-artifact-days-to-keep}'
148         artifactNumToKeep: '{build-artifact-num-to-keep}'
149
150     parameters:
151         - project-parameter:
152             project: '{project}'
153         - gerrit-parameter:
154             branch: '{branch}'
155         - gerrit-refspec-parameter:
156             refspec: 'refs/heads/{branch}'
157
158     scm:
159         - gerrit-trigger-scm:
160             credentials-id: '{ssh-credentials}'
161             refspec: ''
162             choosing-strategy: 'default'
163
164     wrappers:
165         - build-timeout
166         - ssh-agent-credentials:
167             users:
168                 - '{ssh-credentials}'
169
170     triggers:
171         - gerrit-trigger-patch-merged:
172             name: 'reservation'
173             branch: '{branch}'
174
175     prebuilders:
176         - wipe-org-opendaylight-repo
177         - jacoco-nojava-workaround
178         - provide-maven-settings:
179             global-settings-file: '{odl-global-settings}'
180             settings-file: '{reservation-settings}'
181
182     maven:
183         maven-name: '{mvn33}'
184         root-pom: 'pom.xml'
185         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dmerge -Dstream={stream}'
186         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
187         settings: '{reservation-settings}'
188         global-settings: '{odl-global-settings}'
189         post-step-run-condition: UNSTABLE
190
191     postbuilders:
192         - conditional-step:
193             condition-kind: file-exists
194             condition-filename: deploy-site.xml
195             condition-basedir: workspace
196
197             # The strategy here is intentional to run Maven site:deploy twice
198             # once using regular pom.xml to produce a staged-site which is
199             # then used by deploy-site.xml to push to Nexus. This is a
200             # workaround to Maven Site's default linking code which creates
201             # incorrect URLs for sites due to auto-detection assuming your
202             # project is configured in a certain way which ODL is not.
203             steps:
204             - maven-target:
205                 maven-version: '{mvn33}'
206                 pom: pom.xml
207                 goals: 'site:deploy -Dstream={stream}'
208                 java-opts:
209                     - '-Xmx2g'
210                 settings: '{reservation-settings}'
211                 global-settings: '{odl-global-settings}'
212             - maven-target:
213                 maven-version: '{mvn33}'
214                 pom: deploy-site.xml
215                 goals: 'site:deploy -Dstream={stream}'
216                 java-opts:
217                     - '-Xmx2g'
218                 settings: '{reservation-settings}'
219                 global-settings: '{odl-global-settings}'
220
221     reporters:
222         - findbugs
223
224     publishers:
225         - email-notification:
226             email-prefix: '[reservation]'
227         - maven-deploy:
228             id: ''
229             unique-version: true
230             deploy-unstable: false
231         - jacoco-report
232
233 - job-template:
234     name: 'reservation-periodic-{stream}'
235
236     # Job template for periodic builders
237     #
238     # The purpose of this job template is to setup a periodic
239     # builder.
240     #
241     # Required Variables:
242     #     stream:    release stream (eg. stable-lithium or beryllium)
243     #     branch:    git branch (eg. stable/lithium or master)
244
245     project-type: maven
246     node: dynamic_verify
247     jdk: '{jdk}'
248
249     logrotate:
250         daysToKeep: '{build-days-to-keep}'
251         numToKeep: '{build-num-to-keep}'
252         artifactDaysToKeep: '{build-artifact-days-to-keep}'
253         artifactNumToKeep: '{build-artifact-num-to-keep}'
254
255     parameters:
256         - project-parameter:
257             project: '{project}'
258
259     scm:
260         - git-scm:
261             credentials-id: '{ssh-credentials}'
262             refspec: ''
263             branch: '{branch}'
264
265     wrappers:
266         - build-timeout
267         - ssh-agent-credentials:
268             users:
269                 - '{ssh-credentials}'
270
271     triggers:
272         - timed: '@daily'
273
274     prebuilders:
275         - wipe-org-opendaylight-repo
276         - jacoco-nojava-workaround
277         - provide-maven-settings:
278             global-settings-file: '{odl-global-settings}'
279             settings-file: '{reservation-settings}'
280
281     maven:
282         maven-name: '{mvn33}'
283         root-pom: 'pom.xml'
284         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
285         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
286         settings: '{reservation-settings}'
287         global-settings: '{odl-global-settings}'
288
289     reporters:
290         - findbugs
291
292     publishers:
293         - email-notification:
294             email-prefix: '[reservation]'
295         - jacoco-report
296
297 - job-template:
298     name: 'reservation-distribution-{stream}'
299
300     # Required variables:
301     #     stream:    release stream (eg. stable-lithium or beryllium)
302     #     branch:    git branch (eg. stable/lithium or master)
303
304     project-type: maven
305     node: dynamic_merge
306     jdk: '{jdk}'
307
308     logrotate:
309         daysToKeep: '{build-days-to-keep}'
310         numToKeep: '{build-num-to-keep}'
311         artifactDaysToKeep: '{build-artifact-days-to-keep}'
312         artifactNumToKeep: '{build-artifact-num-to-keep}'
313
314     parameters:
315         - project-parameter:
316             project: 'integration/distribution'
317
318     scm:
319         - git-scm:
320             credentials-id: '{ssh-credentials}'
321             refspec: ''
322             branch: '{branch}'
323
324     wrappers:
325         - build-timeout
326         - ssh-agent-credentials:
327             users:
328                 - '{ssh-credentials}'
329
330     triggers:
331         - reverse:
332             jobs: '{project}-merge-{stream}'
333             result: 'success'
334
335     prebuilders:
336         - wipe-org-opendaylight-repo
337         - provide-maven-settings:
338             global-settings-file: '{odl-global-settings}'
339             settings-file: '{reservation-settings}'
340
341     maven:
342         maven-name: '{mvn33}'
343         root-pom: 'pom.xml'
344         goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
345         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
346         settings: '{integration-settings}'
347         global-settings: '{odl-global-settings}'
348
349     publishers:
350         - email-notification:
351             email-prefix: '[{project}]'
352         - maven-deploy:
353             id: ''
354             unique-version: true
355             deploy-unstable: false
356
357 - job-template:
358     name: 'reservation-integration-{stream}'
359     disabled: false
360
361     # Job template for ODL integration verify jobs
362     #
363     # This is similar to a normal verify job, but it runs
364     # when a project that's a dependency of your project
365     # is successfully built.
366     #
367     # Required Variables:
368     #     stream:    release stream (eg. stable-lithium or beryllium)
369     #     branch:    git branch (eg. stable/lithium or master)
370
371     project-type: maven
372     node: dynamic_merge
373     jdk: '{jdk}'
374
375     logrotate:
376         daysToKeep: '{build-days-to-keep}'
377         numToKeep: '{build-num-to-keep}'
378         artifactDaysToKeep: '{build-artifact-days-to-keep}'
379         artifactNumToKeep: '{build-artifact-num-to-keep}'
380
381     parameters:
382         - project-parameter:
383             project: '{project}'
384
385     scm:
386         - git-scm:
387             credentials-id: '{ssh-credentials}'
388             refspec: ''
389             branch: '{branch}'
390
391     wrappers:
392         - build-timeout
393         - ssh-agent-credentials:
394             users:
395                 - '{ssh-credentials}'
396
397     triggers:
398         - reverse:
399             jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream},groupbasedpolicy-merge-{stream}'
400             result: 'success'
401
402     prebuilders:
403         - wipe-org-opendaylight-repo
404         - jacoco-nojava-workaround
405         - provide-maven-settings:
406             global-settings-file: '{odl-global-settings}'
407             settings-file: '{reservation-settings}'
408
409     maven:
410         maven-name: '{mvn33}'
411         root-pom: 'pom.xml'
412         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
413         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
414         settings: '{reservation-settings}'
415         global-settings: '{odl-global-settings}'
416
417     reporters:
418         - findbugs
419
420     publishers:
421         - email-notification:
422             email-prefix: '[reservation] [odlparent] [controller] [yangtools] [groupbasedpolicy]'
423         - jacoco-report
424
425 - job-template:
426     name: 'reservation-sonar'
427
428     project-type: maven
429     node: dynamic_verify
430     jdk: 'openjdk7'
431
432     logrotate:
433         daysToKeep: '7'
434         numToKeep: '10'
435         artifactDaysToKeep: '1'
436         artifactNumToKeep: '1'
437
438     parameters:
439         - project-parameter:
440             project: '{project}'
441
442     scm:
443         - git-scm:
444             credentials-id: '{ssh-credentials}'
445             refspec: ''
446             branch: 'master'
447
448     wrappers:
449         - build-timeout
450         - ssh-agent-credentials:
451             users:
452                 - '{ssh-credentials}'
453
454     triggers:
455         - timed: '@weekly'
456         - gerrit-trigger-patch-sonar:
457             name: 'reservation'
458
459     prebuilders:
460         - wipe-org-opendaylight-repo
461         - jacoco-nojava-workaround
462         - provide-maven-settings:
463             global-settings-file: '{odl-global-settings}'
464             settings-file: '{reservation-settings}'
465
466     maven:
467         maven-name: '{mvn33}'
468         root-pom: 'pom.xml'
469         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dsonar'
470         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
471         settings: '{reservation-settings}'
472         global-settings: '{odl-global-settings}'
473
474     reporters:
475         - findbugs
476
477     publishers:
478         - sonar:
479             language: 'java'
480             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
481         - email-notification:
482             email-prefix: '[reservation]'
483         - jacoco-report
484
485 - job-template:
486     name: 'reservation-clm-{stream}'
487
488     project-type: maven
489     node: dynamic_verify
490     jdk: '{jdk}'
491
492     logrotate:
493         daysToKeep: '{build-days-to-keep}'
494         numToKeep: '{build-num-to-keep}'
495         artifactDaysToKeep: '{build-artifact-days-to-keep}'
496         artifactNumToKeep: '{build-artifact-num-to-keep}'
497
498     parameters:
499         - project-parameter:
500             project: '{project}'
501
502     scm:
503         - git-scm:
504             credentials-id: '{ssh-credentials}'
505             refspec: ''
506             branch: '{branch}'
507
508     wrappers:
509         - build-timeout
510         - ssh-agent-credentials:
511             users:
512                 - '{ssh-credentials}'
513
514     triggers:
515         - timed: '@weekly'
516
517     prebuilders:
518         - wipe-org-opendaylight-repo
519         - provide-maven-settings:
520             global-settings-file: '{odl-global-settings}'
521             settings-file: '{reservation-settings}'
522
523     maven:
524         maven-name: '{mvn33}'
525         root-pom: 'pom.xml'
526         goals: 'clean install -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
527         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
528         settings: '{reservation-settings}'
529         global-settings: '{odl-global-settings}'
530
531     postbuilders:
532         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
533         - check-clm:
534             application-name: reservation
535
536     publishers:
537         - email-notification:
538             email-prefix: '[reservation]'
539
540 - job-template:
541     name: 'reservation-validate-autorelease-{stream}'
542     disabled: '{obj:disable_autorelease}'
543
544     project-type: maven
545     node: dynamic_verify
546     concurrent: true
547     jdk: '{jdk}'
548
549     logrotate:
550         daysToKeep: '{build-days-to-keep}'
551         numToKeep: '{build-num-to-keep}'
552         artifactDaysToKeep: '{build-artifact-days-to-keep}'
553         artifactNumToKeep: '{build-artifact-num-to-keep}'
554
555     parameters:
556         - project-parameter:
557             project: '{project}'
558         - gerrit-parameter:
559             branch: '{branch}'
560         - autorelease-release-tag:
561             release-tag: 'validate'
562         - autorelease-release-branch:
563             release-branch: '{branch}'
564         - autorelease-release-datestamp:
565             datestamp: true
566
567     scm:
568         - git:
569             url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
570             refspec: ''
571             branches:
572                 - 'origin/{branch}'
573             skip-tag: true
574             submodule:
575                 recursive: true
576
577     wrappers:
578         - autorelease-build-timeout
579         - ssh-agent-credentials:
580             users:
581                 - '{ssh-credentials}'
582
583     triggers:
584         - gerrit:
585             server-name: 'OpenDaylight'
586             trigger-on:
587                 - patchset-created-event:
588                     exclude-drafts: 'false'
589                     exclude-trivial-rebase: 'false'
590                     exclude-no-code-change: 'false'
591                 - draft-published-event
592                 - comment-added-contains-event:
593                     comment-contains-value: 'recheck'
594                 - comment-added-contains-event:
595                     comment-contains-value: 'reverify'
596                 - comment-added-contains-event:
597                     comment-contains-value: 'revalidate'
598             projects:
599               - project-compare-type: 'ANT'
600                 project-pattern: 'reservation'
601                 branches:
602                   - branch-compare-type: 'ANT'
603                     branch-pattern: '**/{branch}'
604
605     prebuilders:
606         - wipe-org-opendaylight-repo
607         - jacoco-nojava-workaround
608         - autorelease-checkout-gerrit-patch
609         - autorelease-generate-taglist
610         - autorelease-generate-release-patches
611         - maven-target:
612             maven-version: '{mvn33}'
613             pom: validate-pom.xml
614             goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
615             java-opts:
616             - '-Xmx8g'
617             settings: '{autorelease-settings}'
618             global-settings: '{odl-global-settings}'
619
620     maven:
621         maven-name: '{mvn33}'
622         root-pom: 'pom.xml'
623         goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
624         maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
625         settings: '{autorelease-settings}'
626         global-settings: '{odl-global-settings}'
627         automatic-archiving: false
628         post-step-run-condition: UNSTABLE
629
630     postbuilders:
631         - shell: "./scripts/list-project-dependencies.sh"
632         - autorelease-sys-stats
633
634     publishers:
635         - archive-artifacts:
636             artifacts: '*.log'
637         - email-notification:
638             email-prefix: '[autorelease] [reservation]'
639