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