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