Update automated project templates
[releng/builder.git] / jjb / ofextensions / circuitsw / circuitsw.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: circuitsw
8     jobs:
9         - 'circuitsw-verify-{stream}'
10         - 'circuitsw-merge-{stream}'
11         - 'circuitsw-periodic-{stream}'
12         - 'circuitsw-distribution-{stream}'
13         - 'circuitsw-integration-{stream}'
14         - 'circuitsw-sonar'
15         - 'circuitsw-clm-{stream}'
16         - 'circuitsw-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: True
35
36     project: 'ofextensions/circuitsw'
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: 'circuitsw-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: 'ofextensions/circuitsw'
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: '{ofextensions-circuitsw-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  -Djenkins -Dstream={stream}'
110             java-opts:
111                 - '-Xmx1024m -XX:MaxPermSize=256m'
112             settings: '{ofextensions-circuitsw-settings}'
113             global-settings: '{odl-global-settings}'
114
115     publishers:
116         - findbugs
117         - email-notification:
118             email-prefix: '[circuitsw]'
119         - jacoco-report
120
121 - job-template:
122     name: 'circuitsw-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: '14'
139         numToKeep: '10'
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: 'ofextensions/circuitsw'
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: '{ofextensions-circuitsw-settings}'
175
176     maven:
177         maven-name: '{mvn33}'
178         root-pom: 'pom.xml'
179         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dmerge -Dstream={stream}'
180         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
181         settings: '{ofextensions-circuitsw-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: '{ofextensions-circuitsw-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: '{ofextensions-circuitsw-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: '[circuitsw]'
223         - maven-deploy:
224             id: ''
225             unique-version: true
226             deploy-unstable: false
227         - jacoco-report
228
229 - job-template:
230     name: 'circuitsw-periodic-{stream}'
231     disabled: false
232
233     # Job template for periodic builders
234     #
235     # The purpose of this job template is to setup a periodic
236     # builder.
237     #
238     # Required Variables:
239     #     stream:    release stream (eg. stable-lithium or beryllium)
240     #     branch:    git branch (eg. stable/lithium or master)
241
242     project-type: maven
243     node: dynamic_verify
244     jdk: '{jdk}'
245
246     logrotate:
247         daysToKeep: '14'
248         numToKeep: '10'
249         artifactDaysToKeep: '{build-artifact-days-to-keep}'
250         artifactNumToKeep: '{build-artifact-num-to-keep}'
251
252     parameters:
253         - project-parameter:
254             project: '{project}'
255
256     scm:
257         - git-scm:
258             credentials-id: '{ssh-credentials}'
259             refspec: ''
260             branch: '{branch}'
261
262     wrappers:
263         - build-timeout
264         - ssh-agent-credentials:
265             users:
266                 - '{ssh-credentials}'
267
268     triggers:
269         - timed: '@daily'
270
271     prebuilders:
272         - wipe-org-opendaylight-repo
273         - jacoco-nojava-workaround
274         - provide-maven-settings:
275             global-settings-file: '{odl-global-settings}'
276             settings-file: '{ofextensions-circuitsw-settings}'
277
278     maven:
279         maven-name: '{mvn33}'
280         root-pom: 'pom.xml'
281         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
282         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
283         settings: '{ofextensions-circuitsw-settings}'
284         global-settings: '{odl-global-settings}'
285
286     reporters:
287         - findbugs
288
289     publishers:
290         - email-notification:
291             email-prefix: '[circuitsw]'
292         - jacoco-report
293
294 - job-template:
295     name: 'circuitsw-distribution-{stream}'
296
297     # Required variables:
298     #     stream:    release stream (eg. stable-lithium or beryllium)
299     #     branch:    git branch (eg. stable/lithium or master)
300
301     project-type: maven
302     node: dynamic_merge
303     jdk: '{jdk}'
304
305     logrotate:
306         daysToKeep: '{build-days-to-keep}'
307         numToKeep: '{build-num-to-keep}'
308         artifactDaysToKeep: '{build-artifact-days-to-keep}'
309         artifactNumToKeep: '{build-artifact-num-to-keep}'
310
311     parameters:
312         - project-parameter:
313             project: 'integration/distribution'
314
315     scm:
316         - git-scm:
317             credentials-id: '{ssh-credentials}'
318             refspec: ''
319             branch: '{branch}'
320
321     wrappers:
322         - build-timeout
323         - ssh-agent-credentials:
324             users:
325                 - '{ssh-credentials}'
326
327     triggers:
328         - reverse:
329             jobs: '{project}-merge-{stream}'
330             result: 'success'
331
332     prebuilders:
333         - wipe-org-opendaylight-repo
334         - provide-maven-settings:
335             global-settings-file: '{odl-global-settings}'
336             settings-file: '{ofextensions-circuitsw-settings}'
337
338     maven:
339         maven-name: '{mvn33}'
340         root-pom: 'pom.xml'
341         goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
342         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
343         settings: '{integration-settings}'
344         global-settings: '{odl-global-settings}'
345
346     publishers:
347         - email-notification:
348             email-prefix: '[{project}]'
349         - maven-deploy:
350             id: ''
351             unique-version: true
352             deploy-unstable: false
353
354 - job-template:
355     name: 'circuitsw-integration-{stream}'
356     disabled: false
357
358     # Job template for ODL integration verify jobs
359     #
360     # This is similar to a normal verify job, but it runs
361     # when a project that's a dependency of your project
362     # is successfully built.
363     #
364     # Required Variables:
365     #     stream:    release stream (eg. stable-lithium or beryllium)
366     #     branch:    git branch (eg. stable/lithium or master)
367
368     project-type: maven
369     node: dynamic_merge
370     jdk: '{jdk}'
371
372     logrotate:
373         daysToKeep: '{build-days-to-keep}'
374         numToKeep: '{build-num-to-keep}'
375         artifactDaysToKeep: '{build-artifact-days-to-keep}'
376         artifactNumToKeep: '{build-artifact-num-to-keep}'
377
378     parameters:
379         - project-parameter:
380             project: '{project}'
381
382     scm:
383         - git-scm:
384             credentials-id: '{ssh-credentials}'
385             refspec: ''
386             branch: '{branch}'
387
388     wrappers:
389         - build-timeout
390         - ssh-agent-credentials:
391             users:
392                 - '{ssh-credentials}'
393
394     triggers:
395         - reverse:
396             jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowplugin-merge-{stream}'
397             result: 'success'
398
399     prebuilders:
400         - wipe-org-opendaylight-repo
401         - jacoco-nojava-workaround
402         - provide-maven-settings:
403             global-settings-file: '{odl-global-settings}'
404             settings-file: '{ofextensions-circuitsw-settings}'
405
406     maven:
407         maven-name: '{mvn33}'
408         root-pom: 'pom.xml'
409         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
410         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
411         settings: '{ofextensions-circuitsw-settings}'
412         global-settings: '{odl-global-settings}'
413
414     reporters:
415         - findbugs
416
417     publishers:
418         - email-notification:
419             email-prefix: '[circuitsw] [odlparent] [yangtools] [controller] [openflowplugin]'
420         - jacoco-report
421
422 - job-template:
423     name: 'circuitsw-sonar'
424     disabled: false
425
426     project-type: maven
427     node: dynamic_verify
428     jdk: 'openjdk8'
429
430     logrotate:
431         daysToKeep: '7'
432         numToKeep: '10'
433         artifactDaysToKeep: '1'
434         artifactNumToKeep: '1'
435
436     parameters:
437         - project-parameter:
438             project: '{project}'
439
440     scm:
441         - git-scm:
442             credentials-id: '{ssh-credentials}'
443             refspec: ''
444             branch: 'master'
445
446     wrappers:
447         - build-timeout
448         - ssh-agent-credentials:
449             users:
450                 - '{ssh-credentials}'
451
452     triggers:
453         - timed: '@weekly'
454         - gerrit-trigger-patch-sonar:
455             name: 'ofextensions/circuitsw'
456
457     prebuilders:
458         - wipe-org-opendaylight-repo
459         - jacoco-nojava-workaround
460         - provide-maven-settings:
461             global-settings-file: '{odl-global-settings}'
462             settings-file: '{ofextensions-circuitsw-settings}'
463
464     maven:
465         maven-name: '{mvn33}'
466         root-pom: 'pom.xml'
467         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dsonar'
468         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
469         settings: '{ofextensions-circuitsw-settings}'
470         global-settings: '{odl-global-settings}'
471
472     reporters:
473         - findbugs
474
475     publishers:
476         - sonar:
477             language: 'java'
478             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
479         - email-notification:
480             email-prefix: '[circuitsw]'
481         - jacoco-report
482
483 - job-template:
484     name: 'circuitsw-clm-{stream}'
485     disabled: false
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: '{ofextensions-circuitsw-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: '{ofextensions-circuitsw-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: circuitsw
534
535     publishers:
536         - email-notification:
537             email-prefix: '[circuitsw]'
538
539 - job-template:
540     name: 'circuitsw-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: 'ofextensions/circuitsw'
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] [circuitsw]'
638