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)
82 refspec: 'refs/heads/{branch}'
86 credentials-id: '{ssh-credentials}'
87 refspec: '$GERRIT_REFSPEC'
88 choosing-strategy: 'gerrit'
92 - ssh-agent-credentials:
97 - gerrit-trigger-patch-submitted:
102 - jacoco-nojava-workaround
103 - provide-maven-settings:
104 global-settings-file: 'odl-global-settings'
105 settings-file: 'armoury-settings'
107 maven-version: '{mvn33}'
109 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
111 - '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
112 settings: 'armoury-settings'
114 global-settings: 'odl-global-settings'
115 global-settings-type: cfp
119 artifacts: '**/target/surefire-reports/*-output.txt, '
121 - email-notification:
122 email-prefix: '[armoury]'
125 maven-version: '{mvn33}'
128 name: 'armoury-merge-{stream}'
130 # Job template for ODL merge jobs
132 # The purpose of this job template is to setup a ODL merge job
133 # and deploy artifacts to Nexus.
135 # Required Variables:
136 # stream: release stream (eg. stable-lithium or beryllium)
137 # branch: git branch (eg. stable/lithium or master)
146 artifactDaysToKeep: '{build-artifact-days-to-keep}'
147 artifactNumToKeep: '{build-artifact-num-to-keep}'
155 refspec: 'refs/heads/{branch}'
158 - gerrit-trigger-scm:
159 credentials-id: '{ssh-credentials}'
161 choosing-strategy: 'default'
165 - ssh-agent-credentials:
167 - '{ssh-credentials}'
173 - gerrit-trigger-patch-merged:
178 - jacoco-nojava-workaround
179 - provide-maven-settings:
180 global-settings-file: 'odl-global-settings'
181 settings-file: 'armoury-settings'
184 maven-name: '{mvn33}'
186 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
187 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
188 settings: 'armoury-settings'
190 global-settings: 'odl-global-settings'
191 global-settings-type: cfp
192 post-step-run-condition: UNSTABLE
196 condition-kind: file-exists
197 condition-filename: deploy-site.xml
198 condition-basedir: workspace
200 # The strategy here is intentional to run Maven site:deploy twice
201 # once using regular pom.xml to produce a staged-site which is
202 # then used by deploy-site.xml to push to Nexus. This is a
203 # workaround to Maven Site's default linking code which creates
204 # incorrect URLs for sites due to auto-detection assuming your
205 # project is configured in a certain way which ODL is not.
208 maven-version: '{mvn33}'
210 goals: 'site:deploy -V -B -Dstream={stream}'
213 settings: 'armoury-settings'
215 global-settings: 'odl-global-settings'
216 global-settings-type: cfp
218 maven-version: '{mvn33}'
220 goals: 'site:deploy -V -B -Dstream={stream}'
223 settings: 'armoury-settings'
225 global-settings: 'odl-global-settings'
226 global-settings-type: cfp
233 artifacts: '**/target/surefire-reports/*-output.txt, '
234 - email-notification:
235 email-prefix: '[armoury]'
239 deploy-unstable: false
242 maven-version: '{mvn33}'
245 name: 'armoury-periodic-{stream}'
248 # Job template for periodic builders
250 # The purpose of this job template is to setup a periodic
253 # Required Variables:
254 # stream: release stream (eg. stable-lithium or beryllium)
255 # branch: git branch (eg. stable/lithium or master)
264 artifactDaysToKeep: '{build-artifact-days-to-keep}'
265 artifactNumToKeep: '{build-artifact-num-to-keep}'
273 credentials-id: '{ssh-credentials}'
279 - ssh-agent-credentials:
281 - '{ssh-credentials}'
289 - jacoco-nojava-workaround
290 - provide-maven-settings:
291 global-settings-file: 'odl-global-settings'
292 settings-file: 'armoury-settings'
295 maven-name: '{mvn33}'
297 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
298 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
299 settings: 'armoury-settings'
301 global-settings: 'odl-global-settings'
302 global-settings-type: cfp
308 - email-notification:
309 email-prefix: '[armoury]'
312 maven-version: '{mvn33}'
315 name: 'armoury-distribution-{stream}'
317 # Required variables:
318 # stream: release stream (eg. stable-lithium or beryllium)
319 # branch: git branch (eg. stable/lithium or master)
326 daysToKeep: '{build-days-to-keep}'
327 numToKeep: '{build-num-to-keep}'
328 artifactDaysToKeep: '{build-artifact-days-to-keep}'
329 artifactNumToKeep: '{build-artifact-num-to-keep}'
333 project: 'integration/distribution'
337 credentials-id: '{ssh-credentials}'
343 - ssh-agent-credentials:
345 - '{ssh-credentials}'
351 jobs: '{project}-merge-{stream}'
355 - provide-maven-settings:
356 global-settings-file: 'odl-global-settings'
357 settings-file: 'armoury-settings'
360 maven-name: '{mvn33}'
362 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
363 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
364 settings: 'integration-distribution-settings'
366 global-settings: 'odl-global-settings'
367 global-settings-type: cfp
370 - email-notification:
371 email-prefix: '[{project}]'
375 deploy-unstable: false
377 maven-version: '{mvn33}'
379 # Template: integration-patch-distribution-{stream}
380 # Goal: Build a patch and make sure the distribution can deploy with this change
381 # Operation: This job template builds a patch, creates a distribution containing
382 # the patch, and triggers the distribution deploy test
385 name: 'armoury-distribution-check-{stream}'
386 disabled: '{obj:disable_distribution_check}'
394 daysToKeep: '{build-days-to-keep}'
395 numToKeep: '{build-num-to-keep}'
396 artifactDaysToKeep: '{build-artifact-days-to-keep}'
397 artifactNumToKeep: '{build-artifact-num-to-keep}'
403 refspec: 'refs/heads/{branch}'
406 - integration-distribution-git-url
409 - integration-gerrit-scm:
410 credentials-id: '{ssh-credentials}'
411 basedir: '$GERRIT_PROJECT'
412 refspec: '$GERRIT_REFSPEC'
414 - integration-distribution-scm:
415 credentials-id: '{ssh-credentials}'
420 - ssh-agent-credentials:
422 - '{ssh-credentials}'
428 server-name: 'OpenDaylight'
430 - patchset-created-event:
431 exclude-drafts: 'true'
432 exclude-trivial-rebase: 'false'
433 exclude-no-code-change: 'true'
434 - draft-published-event
435 - comment-added-contains-event:
436 comment-contains-value: 'test-distribution'
437 - comment-added-contains-event:
438 comment-contains-value: 'reverify'
439 - comment-added-contains-event:
440 comment-contains-value: 'recheck'
442 - project-compare-type: 'ANT'
443 project-pattern: '{name}'
445 - branch-compare-type: 'ANT'
446 branch-pattern: '**/{branch}'
455 maven-version: '{mvn33}'
456 pom: '$GERRIT_PROJECT/pom.xml'
457 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}'
459 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
460 settings: 'armoury-settings'
462 global-settings: 'odl-global-settings'
463 global-settings-type: cfp
466 maven-name: '{mvn33}'
467 root-pom: 'distribution/pom.xml'
468 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
469 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
470 settings: 'armoury-settings'
472 global-settings: 'odl-global-settings'
473 global-settings-type: cfp
474 ignore-upstream-changes: true
475 post-step-run-condition: 'SUCCESS'
478 - integration-distribution-check
482 artifacts: 'karaf.log'
484 artifacts: 'karaf_console.log'
485 - email-notification:
486 email-prefix: '[armoury]'
488 maven-version: '{mvn33}'
491 name: 'armoury-integration-{stream}'
494 # Job template for ODL integration verify jobs
496 # This is similar to a normal verify job, but it runs
497 # when a project that's a dependency of your project
498 # is successfully built.
500 # Required Variables:
501 # stream: release stream (eg. stable-lithium or beryllium)
502 # branch: git branch (eg. stable/lithium or master)
509 daysToKeep: '{build-days-to-keep}'
510 numToKeep: '{build-num-to-keep}'
511 artifactDaysToKeep: '{build-artifact-days-to-keep}'
512 artifactNumToKeep: '{build-artifact-num-to-keep}'
520 credentials-id: '{ssh-credentials}'
526 - ssh-agent-credentials:
528 - '{ssh-credentials}'
534 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream}'
538 - jacoco-nojava-workaround
539 - provide-maven-settings:
540 global-settings-file: 'odl-global-settings'
541 settings-file: 'armoury-settings'
544 maven-name: '{mvn33}'
546 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
547 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
548 settings: 'armoury-settings'
550 global-settings: 'odl-global-settings'
551 global-settings-type: cfp
557 - email-notification:
558 email-prefix: '[armoury] [odlparent] [yangtools] [controller] [mdsal]'
561 maven-version: '{mvn33}'
564 name: 'armoury-sonar'
574 artifactDaysToKeep: '1'
575 artifactNumToKeep: '1'
583 credentials-id: '{ssh-credentials}'
589 - ssh-agent-credentials:
591 - '{ssh-credentials}'
597 - gerrit-trigger-patch-sonar:
601 - jacoco-nojava-workaround
602 - provide-maven-settings:
603 global-settings-file: 'odl-global-settings'
604 settings-file: 'armoury-settings'
607 maven-name: '{mvn33}'
609 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
610 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
611 settings: 'armoury-settings'
613 global-settings: 'odl-global-settings'
614 global-settings-type: cfp
622 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
623 - email-notification:
624 email-prefix: '[armoury]'
627 maven-version: '{mvn33}'
630 name: 'armoury-clm-{stream}'
638 daysToKeep: '{build-days-to-keep}'
639 numToKeep: '{build-num-to-keep}'
640 artifactDaysToKeep: '{build-artifact-days-to-keep}'
641 artifactNumToKeep: '{build-artifact-num-to-keep}'
649 credentials-id: '{ssh-credentials}'
655 - ssh-agent-credentials:
657 - '{ssh-credentials}'
665 - provide-maven-settings:
666 global-settings-file: 'odl-global-settings'
667 settings-file: 'armoury-settings'
670 maven-name: '{mvn33}'
672 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'
673 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
674 settings: 'armoury-settings'
676 global-settings: 'odl-global-settings'
677 global-settings-type: cfp
680 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
682 application-name: armoury
685 - email-notification:
686 email-prefix: '[armoury]'
688 maven-version: '{mvn33}'
691 name: 'armoury-validate-autorelease-{stream}'
692 disabled: '{obj:disable_autorelease}'
700 daysToKeep: '{build-days-to-keep}'
701 numToKeep: '{build-num-to-keep}'
702 artifactDaysToKeep: '{build-artifact-days-to-keep}'
703 artifactNumToKeep: '{build-artifact-num-to-keep}'
711 refspec: 'refs/heads/{branch}'
712 - autorelease-release-tag:
713 release-tag: 'validate'
714 - autorelease-release-branch:
715 release-branch: '{branch}'
718 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
719 description: "Autorelease clone URL"
724 credentials-id: '{ssh-credentials}'
734 - autorelease-build-timeout
735 - ssh-agent-credentials:
737 - '{ssh-credentials}'
743 server-name: 'OpenDaylight'
745 - patchset-created-event:
746 exclude-drafts: 'true'
747 exclude-trivial-rebase: 'false'
748 exclude-no-code-change: 'true'
749 - draft-published-event
750 - comment-added-contains-event:
751 comment-contains-value: 'recheck'
752 - comment-added-contains-event:
753 comment-contains-value: 'reverify'
754 - comment-added-contains-event:
755 comment-contains-value: 'revalidate'
757 - project-compare-type: 'ANT'
758 project-pattern: 'armoury'
760 - branch-compare-type: 'ANT'
761 branch-pattern: '**/{branch}'
767 - jacoco-nojava-workaround
768 - autorelease-checkout-gerrit-patch
769 - autorelease-generate-release-patches
771 maven-version: '{mvn33}'
772 pom: validate-pom.xml
773 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'
776 settings: 'autorelease-settings'
778 global-settings: 'odl-global-settings'
779 global-settings-type: cfp
782 maven-name: '{mvn33}'
784 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
785 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
786 settings: 'autorelease-settings'
788 global-settings: 'odl-global-settings'
789 global-settings-type: cfp
790 automatic-archiving: false
791 post-step-run-condition: UNSTABLE
794 - autorelease-sys-stats
797 - email-notification:
798 email-prefix: '[autorelease] [armoury]'
800 maven-version: '{mvn33}'