1 # REMOVE THIS LINE IF YOU WANT TO CUSTOMIZE ANYTHING BELOW
2 # Otherwise this file will be automatically overwritten by the template
5 # ODL Releng build templates
9 - 'armoury-verify-{stream}'
10 - 'armoury-merge-{stream}'
11 - 'armoury-periodic-{stream}'
12 - 'armoury-distribution-{stream}'
13 - 'armoury-distribution-check-{stream}'
14 - 'armoury-integration-{stream}'
16 - 'armoury-clm-{stream}'
17 - 'armoury-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
29 disable_autorelease: True
30 disable_distribution_check: False
32 branch: 'stable/beryllium'
37 disable_autorelease: True
38 disable_distribution_check: False
42 # For the Job templates below replace instances of:
43 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
44 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
45 # MAVEN_GOALS with your maven goals to build
46 # MAVEN_OPTS with your maven options to build
49 name: 'armoury-verify-{stream}'
51 # Job template for ODL verify jobs
53 # The purpose of this job template is to setup a ODL verify job
56 # stream: release stream (eg. stable-lithium or beryllium)
57 # branch: git branch (eg. stable/lithium or master)
74 daysToKeep: '{build-days-to-keep}'
75 numToKeep: '{build-num-to-keep}'
76 artifactDaysToKeep: '{build-artifact-days-to-keep}'
77 artifactNumToKeep: '{build-artifact-num-to-keep}'
85 refspec: 'refs/heads/{branch}'
89 credentials-id: '{ssh-credentials}'
90 refspec: '$GERRIT_REFSPEC'
91 choosing-strategy: 'gerrit'
95 - ssh-agent-credentials:
100 - gerrit-trigger-patch-submitted:
105 - jacoco-nojava-workaround
106 - provide-maven-settings:
107 global-settings-file: 'odl-global-settings'
108 settings-file: 'armoury-settings'
110 maven-version: '{mvn33}'
112 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
114 - '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
115 settings: 'armoury-settings'
117 global-settings: 'odl-global-settings'
118 global-settings-type: cfp
122 artifacts: '**/target/surefire-reports/*-output.txt, '
124 - email-notification:
125 email-prefix: '[armoury]'
128 maven-version: '{mvn33}'
131 name: 'armoury-merge-{stream}'
133 # Job template for ODL merge jobs
135 # The purpose of this job template is to setup a ODL merge job
136 # and deploy artifacts to Nexus.
138 # Required Variables:
139 # stream: release stream (eg. stable-lithium or beryllium)
140 # branch: git branch (eg. stable/lithium or master)
149 artifactDaysToKeep: '{build-artifact-days-to-keep}'
150 artifactNumToKeep: '{build-artifact-num-to-keep}'
158 refspec: 'refs/heads/{branch}'
161 - gerrit-trigger-scm:
162 credentials-id: '{ssh-credentials}'
164 choosing-strategy: 'default'
168 - ssh-agent-credentials:
170 - '{ssh-credentials}'
174 - gerrit-trigger-patch-merged:
179 - jacoco-nojava-workaround
180 - provide-maven-settings:
181 global-settings-file: 'odl-global-settings'
182 settings-file: 'armoury-settings'
185 maven-name: '{mvn33}'
187 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
188 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
189 settings: 'armoury-settings'
191 global-settings: 'odl-global-settings'
192 global-settings-type: cfp
193 post-step-run-condition: UNSTABLE
197 condition-kind: file-exists
198 condition-filename: deploy-site.xml
199 condition-basedir: workspace
201 # The strategy here is intentional to run Maven site:deploy twice
202 # once using regular pom.xml to produce a staged-site which is
203 # then used by deploy-site.xml to push to Nexus. This is a
204 # workaround to Maven Site's default linking code which creates
205 # incorrect URLs for sites due to auto-detection assuming your
206 # project is configured in a certain way which ODL is not.
209 maven-version: '{mvn33}'
211 goals: 'site:deploy -V -B -Dstream={stream}'
214 settings: 'armoury-settings'
216 global-settings: 'odl-global-settings'
217 global-settings-type: cfp
219 maven-version: '{mvn33}'
221 goals: 'site:deploy -V -B -Dstream={stream}'
224 settings: 'armoury-settings'
226 global-settings: 'odl-global-settings'
227 global-settings-type: cfp
234 artifacts: '**/target/surefire-reports/*-output.txt, '
235 - email-notification:
236 email-prefix: '[armoury]'
240 deploy-unstable: false
243 maven-version: '{mvn33}'
246 name: 'armoury-periodic-{stream}'
249 # Job template for periodic builders
251 # The purpose of this job template is to setup a periodic
254 # Required Variables:
255 # stream: release stream (eg. stable-lithium or beryllium)
256 # branch: git branch (eg. stable/lithium or master)
265 artifactDaysToKeep: '{build-artifact-days-to-keep}'
266 artifactNumToKeep: '{build-artifact-num-to-keep}'
274 credentials-id: '{ssh-credentials}'
280 - ssh-agent-credentials:
282 - '{ssh-credentials}'
288 - jacoco-nojava-workaround
289 - provide-maven-settings:
290 global-settings-file: 'odl-global-settings'
291 settings-file: 'armoury-settings'
294 maven-name: '{mvn33}'
296 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
297 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
298 settings: 'armoury-settings'
300 global-settings: 'odl-global-settings'
301 global-settings-type: cfp
307 - email-notification:
308 email-prefix: '[armoury]'
311 maven-version: '{mvn33}'
314 name: 'armoury-distribution-{stream}'
316 # Required variables:
317 # stream: release stream (eg. stable-lithium or beryllium)
318 # branch: git branch (eg. stable/lithium or master)
325 daysToKeep: '{build-days-to-keep}'
326 numToKeep: '{build-num-to-keep}'
327 artifactDaysToKeep: '{build-artifact-days-to-keep}'
328 artifactNumToKeep: '{build-artifact-num-to-keep}'
332 project: 'integration/distribution'
336 credentials-id: '{ssh-credentials}'
342 - ssh-agent-credentials:
344 - '{ssh-credentials}'
348 jobs: '{project}-merge-{stream}'
352 - provide-maven-settings:
353 global-settings-file: 'odl-global-settings'
354 settings-file: 'armoury-settings'
357 maven-name: '{mvn33}'
359 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
360 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
361 settings: 'integration-distribution-settings'
363 global-settings: 'odl-global-settings'
364 global-settings-type: cfp
367 - email-notification:
368 email-prefix: '[{project}]'
372 deploy-unstable: false
374 maven-version: '{mvn33}'
376 # Template: integration-patch-distribution-{stream}
377 # Goal: Build a patch and make sure the distribution can deploy with this change
378 # Operation: This job template builds a patch, creates a distribution containing
379 # the patch, and triggers the distribution deploy test
382 name: 'armoury-distribution-check-{stream}'
383 disabled: '{obj:disable_distribution_check}'
391 daysToKeep: '{build-days-to-keep}'
392 numToKeep: '{build-num-to-keep}'
393 artifactDaysToKeep: '{build-artifact-days-to-keep}'
394 artifactNumToKeep: '{build-artifact-num-to-keep}'
400 refspec: 'refs/heads/{branch}'
403 - integration-distribution-git-url
406 - integration-gerrit-scm:
407 credentials-id: '{ssh-credentials}'
408 basedir: '$GERRIT_PROJECT'
409 refspec: '$GERRIT_REFSPEC'
411 - integration-distribution-scm:
412 credentials-id: '{ssh-credentials}'
417 - ssh-agent-credentials:
419 - '{ssh-credentials}'
423 server-name: 'OpenDaylight'
425 - patchset-created-event:
426 exclude-drafts: 'true'
427 exclude-trivial-rebase: 'false'
428 exclude-no-code-change: 'true'
429 - draft-published-event
430 - comment-added-contains-event:
431 comment-contains-value: 'test-distribution'
432 - comment-added-contains-event:
433 comment-contains-value: 'reverify'
434 - comment-added-contains-event:
435 comment-contains-value: 'recheck'
437 - project-compare-type: 'ANT'
438 project-pattern: '{name}'
440 - branch-compare-type: 'ANT'
441 branch-pattern: '**/{branch}'
450 maven-version: '{mvn33}'
451 pom: '$GERRIT_PROJECT/pom.xml'
452 goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
454 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
455 settings: 'armoury-settings'
457 global-settings: 'odl-global-settings'
458 global-settings-type: cfp
461 maven-name: '{mvn33}'
462 root-pom: 'distribution/pom.xml'
463 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
464 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
465 settings: 'armoury-settings'
467 global-settings: 'odl-global-settings'
468 global-settings-type: cfp
469 ignore-upstream-changes: true
470 post-step-run-condition: 'SUCCESS'
473 - integration-distribution-check
477 artifacts: 'karaf.log'
479 artifacts: 'karaf_console.log'
480 - email-notification:
481 email-prefix: '[armoury]'
483 maven-version: '{mvn33}'
486 name: 'armoury-integration-{stream}'
489 # Job template for ODL integration verify jobs
491 # This is similar to a normal verify job, but it runs
492 # when a project that's a dependency of your project
493 # is successfully built.
495 # Required Variables:
496 # stream: release stream (eg. stable-lithium or beryllium)
497 # branch: git branch (eg. stable/lithium or master)
504 daysToKeep: '{build-days-to-keep}'
505 numToKeep: '{build-num-to-keep}'
506 artifactDaysToKeep: '{build-artifact-days-to-keep}'
507 artifactNumToKeep: '{build-artifact-num-to-keep}'
515 credentials-id: '{ssh-credentials}'
521 - ssh-agent-credentials:
523 - '{ssh-credentials}'
527 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream}'
531 - jacoco-nojava-workaround
532 - provide-maven-settings:
533 global-settings-file: 'odl-global-settings'
534 settings-file: 'armoury-settings'
537 maven-name: '{mvn33}'
539 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
540 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
541 settings: 'armoury-settings'
543 global-settings: 'odl-global-settings'
544 global-settings-type: cfp
550 - email-notification:
551 email-prefix: '[armoury] [odlparent] [yangtools] [controller] [mdsal]'
554 maven-version: '{mvn33}'
557 name: 'armoury-sonar'
567 artifactDaysToKeep: '1'
568 artifactNumToKeep: '1'
576 credentials-id: '{ssh-credentials}'
582 - ssh-agent-credentials:
584 - '{ssh-credentials}'
588 - gerrit-trigger-patch-sonar:
592 - jacoco-nojava-workaround
593 - provide-maven-settings:
594 global-settings-file: 'odl-global-settings'
595 settings-file: 'armoury-settings'
598 maven-name: '{mvn33}'
600 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
601 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
602 settings: 'armoury-settings'
604 global-settings: 'odl-global-settings'
605 global-settings-type: cfp
613 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
614 - email-notification:
615 email-prefix: '[armoury]'
618 maven-version: '{mvn33}'
621 name: 'armoury-clm-{stream}'
629 daysToKeep: '{build-days-to-keep}'
630 numToKeep: '{build-num-to-keep}'
631 artifactDaysToKeep: '{build-artifact-days-to-keep}'
632 artifactNumToKeep: '{build-artifact-num-to-keep}'
640 credentials-id: '{ssh-credentials}'
646 - ssh-agent-credentials:
648 - '{ssh-credentials}'
654 - provide-maven-settings:
655 global-settings-file: 'odl-global-settings'
656 settings-file: 'armoury-settings'
659 maven-name: '{mvn33}'
661 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
662 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
663 settings: 'armoury-settings'
665 global-settings: 'odl-global-settings'
666 global-settings-type: cfp
669 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
671 application-name: armoury
674 - email-notification:
675 email-prefix: '[armoury]'
677 maven-version: '{mvn33}'
680 name: 'armoury-validate-autorelease-{stream}'
681 disabled: '{obj:disable_autorelease}'
689 daysToKeep: '{build-days-to-keep}'
690 numToKeep: '{build-num-to-keep}'
691 artifactDaysToKeep: '{build-artifact-days-to-keep}'
692 artifactNumToKeep: '{build-artifact-num-to-keep}'
700 refspec: 'refs/heads/{branch}'
701 - autorelease-release-tag:
702 release-tag: 'validate'
703 - autorelease-release-branch:
704 release-branch: '{branch}'
707 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
708 description: "Autorelease clone URL"
713 credentials-id: '{ssh-credentials}'
723 - autorelease-build-timeout
724 - ssh-agent-credentials:
726 - '{ssh-credentials}'
730 server-name: 'OpenDaylight'
732 - patchset-created-event:
733 exclude-drafts: 'true'
734 exclude-trivial-rebase: 'false'
735 exclude-no-code-change: 'true'
736 - draft-published-event
737 - comment-added-contains-event:
738 comment-contains-value: 'recheck'
739 - comment-added-contains-event:
740 comment-contains-value: 'reverify'
741 - comment-added-contains-event:
742 comment-contains-value: 'revalidate'
744 - project-compare-type: 'ANT'
745 project-pattern: 'armoury'
747 - branch-compare-type: 'ANT'
748 branch-pattern: '**/{branch}'
754 - jacoco-nojava-workaround
755 - autorelease-checkout-gerrit-patch
756 - autorelease-generate-release-patches
758 maven-version: '{mvn33}'
759 pom: validate-pom.xml
760 goals: 'clean install -V -B -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
763 settings: 'autorelease-settings'
765 global-settings: 'odl-global-settings'
766 global-settings-type: cfp
769 maven-name: '{mvn33}'
771 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
772 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
773 settings: 'autorelease-settings'
775 global-settings: 'odl-global-settings'
776 global-settings-type: cfp
777 automatic-archiving: false
778 post-step-run-condition: UNSTABLE
781 - autorelease-sys-stats
784 - email-notification:
785 email-prefix: '[autorelease] [armoury]'
787 maven-version: '{mvn33}'