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