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