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