Merge "BUG-2625: validate OFP using jdk8 only"
[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     disabled: false
356
357     # Job template for ODL integration verify jobs
358     #
359     # This is similar to a normal verify job, but it runs
360     # when a project that's a dependency of your project
361     # is successfully built.
362     #
363     # Required Variables:
364     #     stream:    release stream (eg. stable-lithium or beryllium)
365     #     branch:    git branch (eg. stable/lithium or master)
366
367     project-type: maven
368     node: dynamic_merge
369     jdk: '{jdk}'
370
371     logrotate:
372         daysToKeep: '{build-days-to-keep}'
373         numToKeep: '{build-num-to-keep}'
374         artifactDaysToKeep: '{build-artifact-days-to-keep}'
375         artifactNumToKeep: '{build-artifact-num-to-keep}'
376
377     parameters:
378         - project-parameter:
379             project: '{project}'
380
381     scm:
382         - git-scm:
383             credentials-id: '{ssh-credentials}'
384             refspec: ''
385             branch: '{branch}'
386
387     wrappers:
388         - build-timeout
389         - ssh-agent-credentials:
390             users:
391                 - '{ssh-credentials}'
392
393     triggers:
394         - reverse:
395             jobs: 'aaa-merge-{stream},controller-merge-{stream},odlparent-merge-{stream},yangtools-merge-{stream}'
396             result: 'success'
397
398     prebuilders:
399         - wipe-org-opendaylight-repo
400         - jacoco-nojava-workaround
401         - provide-maven-settings:
402             global-settings-file: '{odl-global-settings}'
403             settings-file: '{netconf-settings}'
404
405     maven:
406         maven-name: '{mvn33}'
407         root-pom: 'pom.xml'
408         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests -Djenkins'
409         maven-opts: '-Xmx2048m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
410         settings: '{netconf-settings}'
411         global-settings: '{odl-global-settings}'
412
413     reporters:
414         - findbugs
415
416     publishers:
417         - email-notification:
418             email-prefix: '[netconf] [aaa] [controller] [odlparent] [yangtools]'
419         - jacoco-report
420
421 - job-template:
422     name: 'netconf-sonar'
423
424     project-type: maven
425     node: dynamic_verify
426     jdk: 'openjdk7'
427
428     logrotate:
429         daysToKeep: '7'
430         numToKeep: '10'
431         artifactDaysToKeep: '1'
432         artifactNumToKeep: '1'
433
434     parameters:
435         - project-parameter:
436             project: '{project}'
437
438     scm:
439         - git-scm:
440             credentials-id: '{ssh-credentials}'
441             refspec: ''
442             branch: 'master'
443
444     wrappers:
445         - build-timeout
446         - ssh-agent-credentials:
447             users:
448                 - '{ssh-credentials}'
449
450     triggers:
451         - timed: '@weekly'
452         - gerrit-trigger-patch-sonar:
453             name: 'netconf'
454
455     prebuilders:
456         - wipe-org-opendaylight-repo
457         - jacoco-nojava-workaround
458         - provide-maven-settings:
459             global-settings-file: '{odl-global-settings}'
460             settings-file: '{netconf-settings}'
461
462     maven:
463         maven-name: '{mvn33}'
464         root-pom: 'pom.xml'
465         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests -Djenkins -Dsonar'
466         maven-opts: '-Xmx2048m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
467         settings: '{netconf-settings}'
468         global-settings: '{odl-global-settings}'
469
470     reporters:
471         - findbugs
472
473     publishers:
474         - sonar:
475             language: 'java'
476             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
477         - email-notification:
478             email-prefix: '[netconf]'
479         - jacoco-report
480
481 - job-template:
482     name: 'netconf-clm-{stream}'
483
484     project-type: maven
485     node: dynamic_verify
486     jdk: '{jdk}'
487
488     logrotate:
489         daysToKeep: '{build-days-to-keep}'
490         numToKeep: '{build-num-to-keep}'
491         artifactDaysToKeep: '{build-artifact-days-to-keep}'
492         artifactNumToKeep: '{build-artifact-num-to-keep}'
493
494     parameters:
495         - project-parameter:
496             project: '{project}'
497
498     scm:
499         - git-scm:
500             credentials-id: '{ssh-credentials}'
501             refspec: ''
502             branch: '{branch}'
503
504     wrappers:
505         - build-timeout
506         - ssh-agent-credentials:
507             users:
508                 - '{ssh-credentials}'
509
510     triggers:
511         - timed: '@weekly'
512
513     prebuilders:
514         - wipe-org-opendaylight-repo
515         - provide-maven-settings:
516             global-settings-file: '{odl-global-settings}'
517             settings-file: '{netconf-settings}'
518
519     maven:
520         maven-name: '{mvn33}'
521         root-pom: 'pom.xml'
522         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'
523         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
524         settings: '{netconf-settings}'
525         global-settings: '{odl-global-settings}'
526
527     postbuilders:
528         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
529         - check-clm:
530             application-name: netconf
531
532     publishers:
533         - email-notification:
534             email-prefix: '[netconf]'
535
536 - job-template:
537     name: 'netconf-validate-autorelease-{stream}'
538     disabled: '{obj:disable_autorelease}'
539
540     project-type: maven
541     node: dynamic_verify
542     concurrent: true
543     jdk: '{jdk}'
544
545     logrotate:
546         daysToKeep: '{build-days-to-keep}'
547         numToKeep: '{build-num-to-keep}'
548         artifactDaysToKeep: '{build-artifact-days-to-keep}'
549         artifactNumToKeep: '{build-artifact-num-to-keep}'
550
551     parameters:
552         - project-parameter:
553             project: '{project}'
554         - gerrit-parameter:
555             branch: '{branch}'
556         - autorelease-release-tag:
557             release-tag: 'validate'
558         - autorelease-release-branch:
559             release-branch: '{branch}'
560         - autorelease-release-datestamp:
561             datestamp: true
562
563     scm:
564         - git:
565             url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
566             refspec: ''
567             branches:
568                 - 'origin/{branch}'
569             skip-tag: true
570             submodule:
571                 recursive: true
572
573     wrappers:
574         - autorelease-build-timeout
575         - ssh-agent-credentials:
576             users:
577                 - '{ssh-credentials}'
578
579     triggers:
580         - gerrit:
581             server-name: 'OpenDaylight'
582             trigger-on:
583                 - patchset-created-event:
584                     exclude-drafts: 'false'
585                     exclude-trivial-rebase: 'false'
586                     exclude-no-code-change: 'false'
587                 - draft-published-event
588                 - comment-added-contains-event:
589                     comment-contains-value: 'recheck'
590                 - comment-added-contains-event:
591                     comment-contains-value: 'reverify'
592                 - comment-added-contains-event:
593                     comment-contains-value: 'revalidate'
594             projects:
595               - project-compare-type: 'ANT'
596                 project-pattern: 'netconf'
597                 branches:
598                   - branch-compare-type: 'ANT'
599                     branch-pattern: '**/{branch}'
600
601     prebuilders:
602         - wipe-org-opendaylight-repo
603         - jacoco-nojava-workaround
604         - autorelease-checkout-gerrit-patch
605         - autorelease-generate-taglist
606         - autorelease-generate-release-patches
607         - maven-target:
608             maven-version: '{mvn33}'
609             pom: validate-pom.xml
610             goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
611             java-opts:
612             - '-Xmx8g'
613             settings: '{autorelease-settings}'
614             global-settings: '{odl-global-settings}'
615
616     maven:
617         maven-name: '{mvn33}'
618         root-pom: 'pom.xml'
619         goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
620         maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
621         settings: '{autorelease-settings}'
622         global-settings: '{odl-global-settings}'
623         automatic-archiving: false
624         post-step-run-condition: UNSTABLE
625
626     postbuilders:
627         - shell: "./scripts/list-project-dependencies.sh"
628         - autorelease-sys-stats
629
630     publishers:
631         - archive-artifacts:
632             artifacts: '*.log'
633         - email-notification:
634             email-prefix: '[autorelease] [netconf]'
635