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 - 'of-config-verify-{stream}'
10 - 'of-config-merge-{stream}'
11 - 'of-config-periodic-{stream}'
12 - 'of-config-distribution-{stream}'
13 - 'of-config-distribution-check-{stream}'
14 - 'of-config-integration-{stream}'
16 - 'of-config-clm-{stream}'
17 - 'of-config-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: False
29 disable_distribution_check: False
31 branch: 'stable/beryllium'
36 disable_autorelease: False
37 disable_distribution_check: False
41 # For the Job templates below replace instances of:
42 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
43 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
44 # MAVEN_GOALS with your maven goals to build
45 # MAVEN_OPTS with your maven options to build
48 name: 'of-config-verify-{stream}'
50 # Job template for ODL verify jobs
52 # The purpose of this job template is to setup a ODL verify job
55 # stream: release stream (eg. stable-lithium or beryllium)
56 # branch: git branch (eg. stable/lithium or master)
73 daysToKeep: '{build-days-to-keep}'
74 numToKeep: '{build-num-to-keep}'
75 artifactDaysToKeep: '{build-artifact-days-to-keep}'
76 artifactNumToKeep: '{build-artifact-num-to-keep}'
84 refspec: 'refs/heads/{branch}'
88 credentials-id: '{ssh-credentials}'
89 refspec: '$GERRIT_REFSPEC'
90 choosing-strategy: 'gerrit'
94 - ssh-agent-credentials:
99 - gerrit-trigger-patch-submitted:
104 - wipe-org-opendaylight-repo
105 - jacoco-nojava-workaround
106 - provide-maven-settings:
107 global-settings-file: 'odl-global-settings'
108 settings-file: 'of-config-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 - '-Xmx1024m -XX:MaxPermSize=256m'
115 settings: 'of-config-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: '[of-config]'
129 name: 'of-config-merge-{stream}'
131 # Job template for ODL merge jobs
133 # The purpose of this job template is to setup a ODL merge job
134 # and deploy artifacts to Nexus.
136 # Required Variables:
137 # stream: release stream (eg. stable-lithium or beryllium)
138 # branch: git branch (eg. stable/lithium or master)
147 artifactDaysToKeep: '{build-artifact-days-to-keep}'
148 artifactNumToKeep: '{build-artifact-num-to-keep}'
156 refspec: 'refs/heads/{branch}'
159 - gerrit-trigger-scm:
160 credentials-id: '{ssh-credentials}'
162 choosing-strategy: 'default'
166 - ssh-agent-credentials:
168 - '{ssh-credentials}'
172 - gerrit-trigger-patch-merged:
177 - wipe-org-opendaylight-repo
178 - jacoco-nojava-workaround
179 - provide-maven-settings:
180 global-settings-file: 'odl-global-settings'
181 settings-file: 'of-config-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: '-Xmx1024m -XX:MaxPermSize=256m'
188 settings: 'of-config-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: 'of-config-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: 'of-config-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: '[of-config]'
239 deploy-unstable: false
243 name: 'of-config-periodic-{stream}'
246 # Job template for periodic builders
248 # The purpose of this job template is to setup a periodic
251 # Required Variables:
252 # stream: release stream (eg. stable-lithium or beryllium)
253 # branch: git branch (eg. stable/lithium or master)
262 artifactDaysToKeep: '{build-artifact-days-to-keep}'
263 artifactNumToKeep: '{build-artifact-num-to-keep}'
271 credentials-id: '{ssh-credentials}'
277 - ssh-agent-credentials:
279 - '{ssh-credentials}'
285 - wipe-org-opendaylight-repo
286 - jacoco-nojava-workaround
287 - provide-maven-settings:
288 global-settings-file: 'odl-global-settings'
289 settings-file: 'of-config-settings'
292 maven-name: '{mvn33}'
294 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
295 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
296 settings: 'of-config-settings'
298 global-settings: 'odl-global-settings'
299 global-settings-type: cfp
305 - email-notification:
306 email-prefix: '[of-config]'
310 name: 'of-config-distribution-{stream}'
312 # Required variables:
313 # stream: release stream (eg. stable-lithium or beryllium)
314 # branch: git branch (eg. stable/lithium or master)
321 daysToKeep: '{build-days-to-keep}'
322 numToKeep: '{build-num-to-keep}'
323 artifactDaysToKeep: '{build-artifact-days-to-keep}'
324 artifactNumToKeep: '{build-artifact-num-to-keep}'
328 project: 'integration/distribution'
332 credentials-id: '{ssh-credentials}'
338 - ssh-agent-credentials:
340 - '{ssh-credentials}'
344 jobs: '{project}-merge-{stream}'
348 - wipe-org-opendaylight-repo
349 - provide-maven-settings:
350 global-settings-file: 'odl-global-settings'
351 settings-file: 'of-config-settings'
354 maven-name: '{mvn33}'
356 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
357 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
358 settings: 'integration-distribution-settings'
360 global-settings: 'odl-global-settings'
361 global-settings-type: cfp
364 - email-notification:
365 email-prefix: '[{project}]'
369 deploy-unstable: false
371 # Template: integration-patch-distribution-{stream}
372 # Goal: Build a patch and make sure the distribution can deploy with this change
373 # Operation: This job template builds a patch, creates a distribution containing
374 # the patch, and triggers the distribution deploy test
377 name: 'of-config-distribution-check-{stream}'
378 disabled: '{obj:disable_distribution_check}'
386 daysToKeep: '{build-days-to-keep}'
387 numToKeep: '{build-num-to-keep}'
388 artifactDaysToKeep: '{build-artifact-days-to-keep}'
389 artifactNumToKeep: '{build-artifact-num-to-keep}'
395 refspec: 'refs/heads/{branch}'
398 - integration-distribution-git-url
401 - integration-gerrit-scm:
402 credentials-id: '{ssh-credentials}'
403 basedir: '$GERRIT_PROJECT'
404 refspec: '$GERRIT_REFSPEC'
406 - integration-distribution-scm:
407 credentials-id: '{ssh-credentials}'
412 - ssh-agent-credentials:
414 - '{ssh-credentials}'
418 server-name: 'OpenDaylight'
420 - patchset-created-event:
421 exclude-drafts: 'true'
422 exclude-trivial-rebase: 'false'
423 exclude-no-code-change: 'true'
424 - draft-published-event
425 - comment-added-contains-event:
426 comment-contains-value: 'test-distribution'
427 - comment-added-contains-event:
428 comment-contains-value: 'reverify'
429 - comment-added-contains-event:
430 comment-contains-value: 'recheck'
432 - project-compare-type: 'ANT'
433 project-pattern: '{name}'
435 - branch-compare-type: 'ANT'
436 branch-pattern: '**/{branch}'
444 - wipe-org-opendaylight-repo
446 maven-version: '{mvn33}'
447 pom: '$GERRIT_PROJECT/pom.xml'
448 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}'
450 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
451 settings: 'of-config-settings'
453 global-settings: 'odl-global-settings'
454 global-settings-type: cfp
457 maven-name: '{mvn33}'
458 root-pom: 'distribution/pom.xml'
459 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
460 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
461 settings: 'of-config-settings'
463 global-settings: 'odl-global-settings'
464 global-settings-type: cfp
465 ignore-upstream-changes: true
466 post-step-run-condition: 'SUCCESS'
469 - integration-distribution-check
473 artifacts: 'karaf.log'
475 artifacts: 'karaf_console.log'
476 - email-notification:
477 email-prefix: '[of-config]'
480 name: 'of-config-integration-{stream}'
483 # Job template for ODL integration verify jobs
485 # This is similar to a normal verify job, but it runs
486 # when a project that's a dependency of your project
487 # is successfully built.
489 # Required Variables:
490 # stream: release stream (eg. stable-lithium or beryllium)
491 # branch: git branch (eg. stable/lithium or master)
498 daysToKeep: '{build-days-to-keep}'
499 numToKeep: '{build-num-to-keep}'
500 artifactDaysToKeep: '{build-artifact-days-to-keep}'
501 artifactNumToKeep: '{build-artifact-num-to-keep}'
509 credentials-id: '{ssh-credentials}'
515 - ssh-agent-credentials:
517 - '{ssh-credentials}'
521 jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},netconf-merge-{stream}'
525 - wipe-org-opendaylight-repo
526 - jacoco-nojava-workaround
527 - provide-maven-settings:
528 global-settings-file: 'odl-global-settings'
529 settings-file: 'of-config-settings'
532 maven-name: '{mvn33}'
534 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
535 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
536 settings: 'of-config-settings'
538 global-settings: 'odl-global-settings'
539 global-settings-type: cfp
545 - email-notification:
546 email-prefix: '[of-config] [controller] [yangtools] [odlparent] [netconf]'
550 name: 'of-config-sonar'
560 artifactDaysToKeep: '1'
561 artifactNumToKeep: '1'
569 credentials-id: '{ssh-credentials}'
575 - ssh-agent-credentials:
577 - '{ssh-credentials}'
581 - gerrit-trigger-patch-sonar:
585 - wipe-org-opendaylight-repo
586 - jacoco-nojava-workaround
587 - provide-maven-settings:
588 global-settings-file: 'odl-global-settings'
589 settings-file: 'of-config-settings'
592 maven-name: '{mvn33}'
594 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
595 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
596 settings: 'of-config-settings'
598 global-settings: 'odl-global-settings'
599 global-settings-type: cfp
607 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
608 - email-notification:
609 email-prefix: '[of-config]'
613 name: 'of-config-clm-{stream}'
621 daysToKeep: '{build-days-to-keep}'
622 numToKeep: '{build-num-to-keep}'
623 artifactDaysToKeep: '{build-artifact-days-to-keep}'
624 artifactNumToKeep: '{build-artifact-num-to-keep}'
632 credentials-id: '{ssh-credentials}'
638 - ssh-agent-credentials:
640 - '{ssh-credentials}'
646 - wipe-org-opendaylight-repo
647 - provide-maven-settings:
648 global-settings-file: 'odl-global-settings'
649 settings-file: 'of-config-settings'
652 maven-name: '{mvn33}'
654 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'
655 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
656 settings: 'of-config-settings'
658 global-settings: 'odl-global-settings'
659 global-settings-type: cfp
662 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
664 application-name: of-config
667 - email-notification:
668 email-prefix: '[of-config]'
671 name: 'of-config-validate-autorelease-{stream}'
672 disabled: '{obj:disable_autorelease}'
680 daysToKeep: '{build-days-to-keep}'
681 numToKeep: '{build-num-to-keep}'
682 artifactDaysToKeep: '{build-artifact-days-to-keep}'
683 artifactNumToKeep: '{build-artifact-num-to-keep}'
691 refspec: 'refs/heads/{branch}'
692 - autorelease-release-tag:
693 release-tag: 'validate'
694 - autorelease-release-branch:
695 release-branch: '{branch}'
698 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
699 description: "Autorelease clone URL"
704 credentials-id: '{ssh-credentials}'
714 - autorelease-build-timeout
715 - ssh-agent-credentials:
717 - '{ssh-credentials}'
721 server-name: 'OpenDaylight'
723 - patchset-created-event:
724 exclude-drafts: 'true'
725 exclude-trivial-rebase: 'false'
726 exclude-no-code-change: 'true'
727 - draft-published-event
728 - comment-added-contains-event:
729 comment-contains-value: 'recheck'
730 - comment-added-contains-event:
731 comment-contains-value: 'reverify'
732 - comment-added-contains-event:
733 comment-contains-value: 'revalidate'
735 - project-compare-type: 'ANT'
736 project-pattern: 'of-config'
738 - branch-compare-type: 'ANT'
739 branch-pattern: '**/{branch}'
745 - wipe-org-opendaylight-repo
746 - jacoco-nojava-workaround
747 - autorelease-checkout-gerrit-patch
748 - autorelease-generate-release-patches
750 maven-version: '{mvn33}'
751 pom: validate-pom.xml
752 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'
755 settings: 'autorelease-settings'
757 global-settings: 'odl-global-settings'
758 global-settings-type: cfp
761 maven-name: '{mvn33}'
763 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
764 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
765 settings: 'autorelease-settings'
767 global-settings: 'odl-global-settings'
768 global-settings-type: cfp
769 automatic-archiving: false
770 post-step-run-condition: UNSTABLE
773 - autorelease-sys-stats
776 - email-notification:
777 email-prefix: '[autorelease] [of-config]'