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