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